Class GameRuleEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<AbstractGameRulesScreen.RuleEntry>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<AbstractGameRulesScreen.RuleEntry>
net.minecraft.client.gui.screens.worldselection.AbstractGameRulesScreen.RuleEntry
net.neoforged.neoforge.client.gamerules.GameRuleEntry
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, TabOrderedElement, LayoutElement
- Direct Known Subclasses:
GenericGameRuleEntry
Copy of
AbstractGameRulesScreen.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 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 rowTop, int rowLeft) Methods inherited from class ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocusedMethods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods inherited from interface GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
label
-
children
-
font
-
-
Constructor Details
-
GameRuleEntry
-
-
Method Details
-
children
-
narratables
- Specified by:
narratablesin classContainerObjectSelectionList.Entry<AbstractGameRulesScreen.RuleEntry>
-
renderLabel
-