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.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 net.minecraft.world.item.ItemStackfinal net.minecraft.network.chat.ComponentFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionElementEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.network.chat.Component name, net.minecraft.world.item.ItemStack icon, net.minecraft.resources.ResourceLocation sprite, net.minecraft.resources.ResourceLocation highlightedSprite, Runnable onTransfer) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentbooleanmouseClicked(double mouseX, double mouseY, int button) voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) setSortable(Runnable onMoveUp, Runnable onMoveDown) Methods 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, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
list
-
element
-
name
public final net.minecraft.network.chat.Component name -
icon
public final net.minecraft.world.item.ItemStack icon
-
-
Constructor Details
-
ElementEntry
public ElementEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.network.chat.Component name, net.minecraft.world.item.ItemStack icon, net.minecraft.resources.ResourceLocation sprite, net.minecraft.resources.ResourceLocation highlightedSprite, Runnable onTransfer)
-
-
Method Details
-
setSortable
public AbstractRegistrySelectionScreen<T>.ElementEntry setSortable(Runnable onMoveUp, Runnable onMoveDown) -
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - 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>
-