类 EditGameRulesScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.world.EditGameRulesScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class EditGameRulesScreen extends Screen
- Mappings:
Namespace Name official ecuintermediary net/minecraft/class_5235named net/minecraft/client/gui/screen/world/EditGameRulesScreen
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classEditGameRulesScreen.AbstractRuleWidgetclassEditGameRulesScreen.BooleanRuleWidgetclassEditGameRulesScreen.IntRuleWidgetclassEditGameRulesScreen.NamedRuleWidgetclassEditGameRulesScreen.RuleCategoryWidgetclassEditGameRulesScreen.RuleListWidget(专用程序包) static interfaceEditGameRulesScreen.RuleWidgetFactory<T extends GameRules.Rule<T>>
-
字段概要
字段 修饰符和类型 字段 说明 private ButtonWidgetdoneButtonprivate GameRulesgameRulesprivate Set<EditGameRulesScreen.AbstractRuleWidget>invalidRuleWidgetsprivate EditGameRulesScreen.RuleListWidgetruleListWidgetprivate Consumer<Optional<GameRules>>ruleSaverprivate @Nullable List<OrderedText>tooltip-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 EditGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> ruleSaveConsumer)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidinit()Called when a screen should be initialized.private voidmarkInvalid(EditGameRulesScreen.AbstractRuleWidget ruleWidget)private voidmarkValid(EditGameRulesScreen.AbstractRuleWidget ruleWidget)voidonClose()voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidsetTooltipDescription(@Nullable List<OrderedText> description)private voidupdateDoneButton()-
从类继承的方法 net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
ruleSaver
private final Consumer<Optional<GameRules>> ruleSaver
- Mappings:
Namespace Name Mixin selector official aLecu;a:Ljava/util/function/Consumer;intermediary field_24293Lnet/minecraft/class_5235;field_24293:Ljava/util/function/Consumer;named ruleSaverLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleSaver:Ljava/util/function/Consumer;
-
ruleListWidget
private EditGameRulesScreen.RuleListWidget ruleListWidget
- Mappings:
Namespace Name Mixin selector official bLecu;b:Lecu$g;intermediary field_24294Lnet/minecraft/class_5235;field_24294:Lnet/minecraft/class_5235$class_5241;named ruleListWidgetLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleListWidget:Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$RuleListWidget;
-
invalidRuleWidgets
private final Set<EditGameRulesScreen.AbstractRuleWidget> invalidRuleWidgets
- Mappings:
Namespace Name Mixin selector official cLecu;c:Ljava/util/Set;intermediary field_24295Lnet/minecraft/class_5235;field_24295:Ljava/util/Set;named invalidRuleWidgetsLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;invalidRuleWidgets:Ljava/util/Set;
-
doneButton
private ButtonWidget doneButton
- Mappings:
Namespace Name Mixin selector official pLecu;p:Ldvw;intermediary field_24296Lnet/minecraft/class_5235;field_24296:Lnet/minecraft/class_4185;named doneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
tooltip
@Nullable private @Nullable List<OrderedText> tooltip
- Mappings:
Namespace Name Mixin selector official qLecu;q:Ljava/util/List;intermediary field_24297Lnet/minecraft/class_5235;field_24297:Ljava/util/List;named tooltipLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;tooltip:Ljava/util/List;
-
gameRules
private final GameRules gameRules
- Mappings:
Namespace Name Mixin selector official rLecu;r:Lbvn;intermediary field_24298Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;named gameRulesLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/GameRules;
-
-
构造器详细资料
-
EditGameRulesScreen
public EditGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> ruleSaveConsumer)
- Mappings:
Namespace Name Mixin selector official <init>Lecu;<init>(Lbvn;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;<init>(Lnet/minecraft/world/GameRules;Ljava/util/function/Consumer;)V
-
-
方法详细资料
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
removed
public void removed()
-
onClose
public void onClose()
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
setTooltipDescription
private void setTooltipDescription(@Nullable @Nullable List<OrderedText> description)
- Mappings:
Namespace Name Mixin selector official bLecu;b(Ljava/util/List;)Vintermediary method_27624Lnet/minecraft/class_5235;method_27624(Ljava/util/List;)Vnamed setTooltipDescriptionLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;setTooltipDescription(Ljava/util/List;)V
-
updateDoneButton
private void updateDoneButton()
- Mappings:
Namespace Name Mixin selector official hLecu;h()Vintermediary method_27632Lnet/minecraft/class_5235;method_27632()Vnamed updateDoneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()V
-
markInvalid
private void markInvalid(EditGameRulesScreen.AbstractRuleWidget ruleWidget)
- Mappings:
Namespace Name Mixin selector official aLecu;a(Lecu$f;)Vintermediary method_27620Lnet/minecraft/class_5235;method_27620(Lnet/minecraft/class_5235$class_5240;)Vnamed markInvalidLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markInvalid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
-
markValid
private void markValid(EditGameRulesScreen.AbstractRuleWidget ruleWidget)
- Mappings:
Namespace Name Mixin selector official bLecu;b(Lecu$f;)Vintermediary method_27626Lnet/minecraft/class_5235;method_27626(Lnet/minecraft/class_5235$class_5240;)Vnamed markValidLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markValid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
-
-