Class EditGameRulesScreen.NamedRuleWidget
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.ElementListWidget.Entry<EditGameRulesScreen.AbstractRuleWidget>
net.minecraft.client.gui.screen.world.EditGameRulesScreen.AbstractRuleWidget
net.minecraft.client.gui.screen.world.EditGameRulesScreen.NamedRuleWidget
- All Implemented Interfaces:
Element
,ParentElement
- Direct Known Subclasses:
EditGameRulesScreen.BooleanRuleWidget
,EditGameRulesScreen.IntRuleWidget
- Enclosing class:
- EditGameRulesScreen
@Environment(CLIENT) public abstract class EditGameRulesScreen.NamedRuleWidget extends EditGameRulesScreen.AbstractRuleWidget
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NamedRuleWidget(List<OrderedText> description, Text name)
-
Method Summary
Modifier and Type Method Description List<? extends Element>
children()
Gets a list of all child GUI elements.protected void
drawName(MatrixStack matrices, int x, int y)
Methods inherited from class net.minecraft.client.gui.widget.ElementListWidget.Entry
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOver, render
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.Element
isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
name
-
children
-
-
Constructor Details
-
NamedRuleWidget
-
-
Method Details
-
children
Gets a list of all child GUI elements. -
drawName
-