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
ConstructorsConstructorDescriptionButtonEntry(WidgetCreator creator) Creates a single, wide entry.ButtonEntry(WidgetCreator first, @Nullable WidgetCreator other) Creates an entry. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<? extends net.minecraft.client.gui.components.events.GuiEventListener> children()voidextractContent(@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, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
ButtonEntry
Creates an entry.- Parameters:
first- The first entryother- The second entry; nullable
-
ButtonEntry
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:
narratablesin classnet.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)
-