Class TitleEntry
java.lang.Object
net.minecraft.client.gui.components.ObjectSelectionList.Entry<VFPListEntry>
com.viaversion.viafabricplus.screen.VFPListEntry
com.viaversion.viafabricplus.screen.impl.settings.TitleEntry
- All Implemented Interfaces:
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
-
Field Summary
Fields inherited from class com.viaversion.viafabricplus.screen.VFPListEntry
SCISSORS_OFFSET, SLOT_MARGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentvoidmappedRender(net.minecraft.client.gui.GuiGraphics context, int x, int y, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) voidrenderContent(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 theVFPListEntry.mappedRender(GuiGraphics, int, int, int, int, int, int, boolean, float)methodMethods inherited from class com.viaversion.viafabricplus.screen.VFPListEntry
mappedMouseClicked, mouseClicked, renderScrollableText, renderScrollableText, renderTooltipMethods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
TitleEntry
public TitleEntry(net.minecraft.network.chat.Component name)
-
-
Method Details
-
getNarration
public net.minecraft.network.chat.Component getNarration()- Specified by:
getNarrationin classnet.minecraft.client.gui.components.ObjectSelectionList.Entry<VFPListEntry>
-
renderContent
public void renderContent(net.minecraft.client.gui.GuiGraphics context, int mouseX, int mouseY, boolean hovered, float deltaTicks) Description copied from class:VFPListEntryAutomatically draws a background for the slot with the slot's dimension and calls theVFPListEntry.mappedRender(GuiGraphics, int, int, int, int, int, int, boolean, float)method- Overrides:
renderContentin classVFPListEntry
-
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) - Overrides:
mappedRenderin classVFPListEntry
-