Class WidgetCreatorList.ButtonEntry

java.lang.Object
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<@NotNull WidgetCreatorList.ButtonEntry>
net.uku3lig.ukulib.config.option.widget.WidgetCreatorList.ButtonEntry
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement
Enclosing class:
WidgetCreatorList

public class WidgetCreatorList.ButtonEntry extends net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<@NotNull WidgetCreatorList.ButtonEntry>
A widget entry, made of one or two creators.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a single, wide entry.
    ButtonEntry(WidgetCreator first, @Nullable WidgetCreator other)
    Creates an entry.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull List<? extends net.minecraft.client.gui.components.events.GuiEventListener>
     
    void
    extractContent(@NotNull net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, boolean hovered, float deltaTicks)
     
    @NotNull List<? extends net.minecraft.client.gui.narration.NarratableEntry>
     

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

    focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocused

    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.ContainerEventHandler

    charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, preeditUpdated, setFocused

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

    getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteraction

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

    setPosition

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

    getTabOrderGroup
  • Constructor Details

    • ButtonEntry

      public ButtonEntry(WidgetCreator first, @Nullable @Nullable WidgetCreator other)
      Creates an entry.
      Parameters:
      first - The first entry
      other - The second entry; nullable
    • ButtonEntry

      public ButtonEntry(WidgetCreator creator)
      Creates a single, wide entry.
      Parameters:
      creator - The entry
  • Method Details

    • narratables

      @NotNull public @NotNull List<? extends net.minecraft.client.gui.narration.NarratableEntry> narratables()
      Specified by:
      narratables in class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<@NotNull WidgetCreatorList.ButtonEntry>
    • children

      @NotNull public @NotNull List<? extends net.minecraft.client.gui.components.events.GuiEventListener> children()
    • extractContent

      public void extractContent(@NotNull @NotNull net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, boolean hovered, float deltaTicks)