Class GameRuleEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<EditGameRulesScreen.RuleEntry>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<EditGameRulesScreen.RuleEntry>
net.minecraft.client.gui.screens.worldselection.EditGameRulesScreen.RuleEntry
net.neoforged.neoforge.client.gamerules.GameRuleEntry
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,TabOrderedElement,LayoutElement
- Direct Known Subclasses:
GenericGameRuleEntry
Copy of
EditGameRulesScreen.GameRuleEntry modified to be used in a static context.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AbstractWidget> protected final Fontprivate final List<FormattedCharSequence> Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionGameRuleEntry(Font font, @Nullable List<FormattedCharSequence> tooltip, Component label) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends GuiEventListener> children()List<? extends NarratableEntry> protected voidrenderLabel(GuiGraphics graphics, int y, int x) Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, renderContent, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods 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
-
Field Details
-
label
-
children
-
font
-
-
Constructor Details
-
GameRuleEntry
-
-
Method Details
-
children
-
narratables
- Specified by:
narratablesin classContainerObjectSelectionList.Entry<EditGameRulesScreen.RuleEntry>
-
renderLabel
-