类 EditGameRulesScreen.IntRuleWidget
- 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
-
- net.minecraft.client.gui.screen.world.EditGameRulesScreen.IntRuleWidget
-
- 所有已实现的接口:
Element,ParentElement
- 封闭类:
- EditGameRulesScreen
@Environment(CLIENT) public class EditGameRulesScreen.IntRuleWidget extends EditGameRulesScreen.NamedRuleWidget
- Mappings:
Namespace Name official ecu$eintermediary net/minecraft/class_5235$class_5239named net/minecraft/client/gui/screen/world/EditGameRulesScreen$IntRuleWidget
-
-
字段概要
字段 修饰符和类型 字段 说明 private TextFieldWidgetvalueWidget-
从类继承的字段 net.minecraft.client.gui.screen.world.EditGameRulesScreen.NamedRuleWidget
children
-
-
构造器概要
构造器 构造器 说明 IntRuleWidget(Text name, List<OrderedText> description, String ruleName, GameRules.IntRule rule)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidrender(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)Renders an entry in a list.-
从类继承的方法 net.minecraft.client.gui.screen.world.EditGameRulesScreen.NamedRuleWidget
children, drawName
-
从类继承的方法 net.minecraft.client.gui.widget.ElementListWidget.Entry
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOver
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
isMouseOver, mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
valueWidget
private final TextFieldWidget valueWidget
- Mappings:
Namespace Name Mixin selector official eLecu$e;e:Ldwe;intermediary field_24309Lnet/minecraft/class_5235$class_5239;field_24309:Lnet/minecraft/class_342;named valueWidgetLnet/minecraft/client/gui/screen/world/EditGameRulesScreen$IntRuleWidget;valueWidget:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
-
构造器详细资料
-
IntRuleWidget
public IntRuleWidget(Text name, List<OrderedText> description, String ruleName, GameRules.IntRule rule)
- Mappings:
Namespace Name Mixin selector official <init>Lecu$e;<init>(Lecu;Lon;Ljava/util/List;Ljava/lang/String;Lbvn$d;)Vintermediary <init>Lnet/minecraft/class_5235$class_5239;<init>(Lnet/minecraft/class_5235;Lnet/minecraft/class_2561;Ljava/util/List;Ljava/lang/String;Lnet/minecraft/class_1928$class_4312;)Vnamed <init>Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$IntRuleWidget;<init>(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;Lnet/minecraft/text/Text;Ljava/util/List;Ljava/lang/String;Lnet/minecraft/world/GameRules$IntRule;)V
-
-
方法详细资料
-
render
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
Renders an entry in a list.- 指定者:
render在类中EntryListWidget.Entry<EditGameRulesScreen.AbstractRuleWidget>- 参数:
matrices- the matrix stack used for renderingindex- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector official aLdvs$a;a(Ldpi;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
-
-