Class GenericGameRuleEntry<T>
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
net.neoforged.neoforge.client.gamerules.GenericGameRuleEntry<T>
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,TabOrderedElement,LayoutElement
Copy of
EditGameRulesScreen.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 net.neoforged.neoforge.client.gamerules.GameRuleEntry
children, fontFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionGenericGameRuleEntry(EditGameRulesScreen screen, Component label, List<FormattedCharSequence> tooltip, String str, GameRule<T> gameRule) -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderContent(GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float particlTick) Methods inherited from class net.neoforged.neoforge.client.gamerules.GameRuleEntry
children, narratables, renderLabelMethods 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, 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
-
input
-
-
Constructor Details
-
GenericGameRuleEntry
public GenericGameRuleEntry(EditGameRulesScreen screen, Component label, List<FormattedCharSequence> tooltip, String str, GameRule<T> gameRule)
-
-
Method Details
-
renderContent
public void renderContent(GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float particlTick) - Specified by:
renderContentin classAbstractSelectionList.Entry<EditGameRulesScreen.RuleEntry>
-