Class AbstractRegistrySelectionScreen.ElementEntry
java.lang.Object
net.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractRegistrySelectionScreen<T>.ElementEntry>
johnsmith.configoverhauled.impl.client.gui.screen.AbstractRegistrySelectionScreen.ElementEntry
- 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
- Enclosing class:
AbstractRegistrySelectionScreen<T>
public class AbstractRegistrySelectionScreen.ElementEntry
extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractRegistrySelectionScreen<T>.ElementEntry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Tfinal RenderableIconfinal net.minecraft.network.chat.Component -
Constructor Summary
ConstructorsConstructorDescriptionElementEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.network.chat.Component name, RenderableIcon icon, net.minecraft.resources.Identifier sprite, net.minecraft.resources.Identifier highlightedSprite, Runnable onTransfer) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractContent(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphicExtractor, int mouseX, int mouseY, boolean isHovering, float partialTick) net.minecraft.network.chat.ComponentbooleanmouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean pressed) setSortable(Runnable onMoveUp, Runnable onMoveDown) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class 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, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
list
-
element
-
name
public final net.minecraft.network.chat.Component name -
icon
-
-
Constructor Details
-
ElementEntry
public ElementEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.network.chat.Component name, RenderableIcon icon, net.minecraft.resources.Identifier sprite, net.minecraft.resources.Identifier highlightedSprite, Runnable onTransfer)
-
-
Method Details
-
setSortable
public AbstractRegistrySelectionScreen<T>.ElementEntry setSortable(Runnable onMoveUp, Runnable onMoveDown) -
extractContent
public void extractContent(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphicExtractor, int mouseX, int mouseY, boolean isHovering, float partialTick) -
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean pressed) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classnet.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractRegistrySelectionScreen<T>.ElementEntry>
-
getNarration
public net.minecraft.network.chat.Component getNarration()- Specified by:
getNarrationin classnet.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractRegistrySelectionScreen<T>.ElementEntry>
-