Class GenericGameRuleEntry<T>
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
net.neoforged.neoforge.client.gamerules.GenericGameRuleEntry<T>
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, TabOrderedElement, LayoutElement
Copy of
AbstractGameRulesScreen.IntegerRuleEntry updated to be used in a static context for any GameRule
It is recommended for advanced types to make use of RegisterGameRuleEntryFactoryEvent
-
Field Summary
FieldsFields inherited from class GameRuleEntry
children, fontFields inherited from class AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionGenericGameRuleEntry(AbstractGameRulesScreen screen, Component label, List<FormattedCharSequence> tooltip, String narration, GameRule<T> gameRule) -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderContent(GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float a) Methods inherited from class GameRuleEntry
children, narratables, renderLabelMethods 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, 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
-
input
-
-
Constructor Details
-
GenericGameRuleEntry
public GenericGameRuleEntry(AbstractGameRulesScreen screen, Component label, List<FormattedCharSequence> tooltip, String narration, GameRule<T> gameRule)
-
-
Method Details
-
renderContent
- Specified by:
renderContentin classAbstractSelectionList.Entry<AbstractGameRulesScreen.RuleEntry>
-