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(int width, WidgetCreator creator) Deprecated, for removal: This API element is subject to removal in a future version.The width is now computed automaticallyButtonEntry(int width, WidgetCreator first, @Nullable WidgetCreator other) Deprecated, for removal: This API element is subject to removal in a future version.The width is now computed automaticallyButtonEntry(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()@NotNull List<? extends net.minecraft.client.gui.narration.NarratableEntry> voidrenderContent(@NotNull net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float deltaTicks) Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocusedMethods 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.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, 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
-
ButtonEntry
@Deprecated(since="1.10.0", forRemoval=true) public ButtonEntry(int width, WidgetCreator first, @Nullable @Nullable WidgetCreator other) Deprecated, for removal: This API element is subject to removal in a future version.The width is now computed automaticallyCreates an entry.- Parameters:
width- The width of the entryfirst- The first entryother- The second entry; nullable- See Also:
-
ButtonEntry
Deprecated, for removal: This API element is subject to removal in a future version.The width is now computed automaticallyCreates a single, wide entry.- Parameters:
width- The width of the entrycreator- The entry- See Also:
-
-
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() -
renderContent
public void renderContent(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float deltaTicks)
-