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

    Fields
    Modifier and Type
    Field
    Description
    final T
     
     
     
    final net.minecraft.network.chat.Component
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    extractContent(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphicExtractor, int mouseX, int mouseY, boolean isHovering, float partialTick)
     
    net.minecraft.network.chat.Component
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean pressed)
     
    setSortable(Runnable onMoveUp, Runnable onMoveDown)
     

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

    updateNarration

    Methods inherited from class 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, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, shouldTakeFocusAfterInteraction

    Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement

    setPosition

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

    getTabOrderGroup
  • Field Details

  • Constructor Details

  • 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:
      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>