Klasse VFPListEntry

java.lang.Object
net.minecraft.client.gui.components.ObjectSelectionList.Entry<VFPListEntry>
com.viaversion.viafabricplus.screen.VFPListEntry
Alle implementierten Schnittstellen:
net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement, net.minecraft.client.gui.narration.NarrationSupplier
Bekannte direkte Unterklassen:
BedrockRealmsScreen.SlotEntry, BetaCraftScreen.ServerSlot, BooleanListEntry, ButtonListEntry, ClassiCubeServerListScreen.ServerSlot, ModeListEntry, PerServerVersionScreen.SharedSlot, ProtocolSelectionScreen.ProtocolSlot, TitleEntry, VersionedBooleanListEntry

public abstract class VFPListEntry extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<VFPListEntry>
This class is a wrapper for the ObjectSelectionList.Entry class. Features included:
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected static final int
     
    static final int
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    mappedMouseClicked(double mouseX, double mouseY, int button)
     
    void
    mappedRender(net.minecraft.client.gui.GuiGraphics context, int x, int y, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent click, boolean doubled)
    Automatically plays a click sound and calls the mappedMouseClicked(double, double, int) method
    void
    renderContent(net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, boolean hovered, float deltaTicks)
    Automatically draws a background for the slot with the slot's dimension and calls the mappedRender(GuiGraphics, int, int, int, int, int, int, boolean, float) method
    void
    renderScrollableText(net.minecraft.network.chat.Component name, int offset)
     
    void
    renderScrollableText(net.minecraft.network.chat.Component text, int textY, int offset)
    Automatically scrolls the text if it is too long to be displayed in the slot.
    void
    renderTooltip(@Nullable net.minecraft.network.chat.Component tooltip, int mouseX, int mouseY)
    Draws a tooltip if the mouse is hovering over the slot

    Von Klasse geerbte Methoden net.minecraft.client.gui.components.ObjectSelectionList.Entry

    getNarration, updateNarration

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Von Schnittstelle geerbte Methoden net.minecraft.client.gui.components.events.GuiEventListener

    charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteraction

    Von Schnittstelle geerbte Methoden net.minecraft.client.gui.layouts.LayoutElement

    setPosition

    Von Schnittstelle geerbte Methoden net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Felddetails

  • Konstruktordetails

    • VFPListEntry

      public VFPListEntry()
  • Methodendetails

    • mappedRender

      public void mappedRender(net.minecraft.client.gui.GuiGraphics context, int x, int y, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
    • mappedMouseClicked

      public void mappedMouseClicked(double mouseX, double mouseY, int button)
    • mouseClicked

      public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent click, boolean doubled)
      Automatically plays a click sound and calls the mappedMouseClicked(double, double, int) method
      Angegeben von:
      mouseClicked in Schnittstelle net.minecraft.client.gui.components.events.GuiEventListener
      Setzt außer Kraft:
      mouseClicked in Klasse net.minecraft.client.gui.components.ObjectSelectionList.Entry<VFPListEntry>
    • renderScrollableText

      public void renderScrollableText(net.minecraft.network.chat.Component name, int offset)
    • renderScrollableText

      public void renderScrollableText(net.minecraft.network.chat.Component text, int textY, int offset)
      Automatically scrolls the text if it is too long to be displayed in the slot. The text will be scrolled from right to left
      Parameter:
      text - The text which should be displayed
      textY - The Y position of the text
      offset - The offset of the text from the left side of the slot, this is used to calculate the width of the text, which should be scrolled
    • renderTooltip

      public void renderTooltip(@Nullable @Nullable net.minecraft.network.chat.Component tooltip, int mouseX, int mouseY)
      Draws a tooltip if the mouse is hovering over the slot
      Parameter:
      tooltip - The tooltip which should be displayed
      mouseX - The current mouse X position
      mouseY - The current mouse Y position
    • renderContent

      public void renderContent(net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, boolean hovered, float deltaTicks)
      Automatically draws a background for the slot with the slot's dimension and calls the mappedRender(GuiGraphics, int, int, int, int, int, int, boolean, float) method