Class ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry>
net.neoforged.neoforge.client.gui.ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,TabOrderedElement
- Enclosing class:
ScrollableExperimentsScreen.ExperimentSelectionList
private static class ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry
extends ContainerObjectSelectionList.Entry<ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CycleButton
<Boolean> private static final int
private final List
<AbstractWidget> private static final int
private final MultiLineTextWidget
private static final int
private final StringWidget
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionExperimentEntry
(Component title, BooleanSupplier selectedSupplier, Consumer<Boolean> selectedSetter, Component description) -
Method Summary
Modifier and TypeMethodDescriptionList
<? extends GuiEventListener> children()
List
<? extends NarratableEntry> void
render
(GuiGraphics graphics, int entryIdx, int top, int left, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float partialTick) Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BUTTON_WIDTH
private static final int BUTTON_WIDTH- See Also:
-
TITLE_Y
private static final int TITLE_Y- See Also:
-
DESCRIPTION_Y
private static final int DESCRIPTION_Y- See Also:
-
titleWidget
-
descriptionWidget
-
button
-
children
-
-
Constructor Details
-
ExperimentEntry
public ExperimentEntry(Component title, BooleanSupplier selectedSupplier, Consumer<Boolean> selectedSetter, Component description)
-
-
Method Details
-
render
public void render(GuiGraphics graphics, int entryIdx, int top, int left, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float partialTick) - Specified by:
render
in classAbstractSelectionList.Entry<ScrollableExperimentsScreen.ExperimentSelectionList.ExperimentEntry>
-
children
-
narratables
-