Class OptionsList.Entry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<OptionsList.Entry>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<OptionsList.Entry>
net.minecraft.client.gui.components.OptionsList.Entry
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,TabOrderedElement
- Direct Known Subclasses:
OptionsList.OptionEntry
- Enclosing class:
OptionsList
protected static class OptionsList.Entry
extends ContainerObjectSelectionList.Entry<OptionsList.Entry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<AbstractWidget> private final Screenprivate static final intFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
listFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionsList.Entrybig(List<AbstractWidget> options, Screen screen) List<? extends GuiEventListener> children()List<? extends NarratableEntry> voidrender(GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) static OptionsList.Entrysmall(AbstractWidget leftOption, AbstractWidget rightOption, Screen screen) Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocused, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, 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
getRectangle, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
children
-
screen
-
X_OFFSET
private static final int X_OFFSET- See Also:
-
-
Constructor Details
-
Entry
Entry(List<AbstractWidget> children, Screen screen)
-
-
Method Details
-
big
-
small
public static OptionsList.Entry small(AbstractWidget leftOption, @Nullable AbstractWidget rightOption, Screen screen) -
render
public void render(GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) - Specified by:
renderin classAbstractSelectionList.Entry<OptionsList.Entry>
-
children
-
narratables
- Specified by:
narratablesin classContainerObjectSelectionList.Entry<OptionsList.Entry>
-