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

    Fields
    Modifier and Type
    Field
    Description
    final T
     
    final net.minecraft.world.item.ItemStack
     
     
    final net.minecraft.network.chat.Component
     

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
     
    boolean
    mouseClicked(double mouseX, double mouseY, int button)
     
    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)
     
    setSortable(Runnable onMoveUp, Runnable onMoveDown)
     

    Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry

    updateNarration

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

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

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

  • 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:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class net.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractRegistrySelectionScreen<T>.ElementEntry>
    • getNarration

      public net.minecraft.network.chat.Component getNarration()
      Specified by:
      getNarration in class net.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractRegistrySelectionScreen<T>.ElementEntry>