Class EditGameRulesScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.world.EditGameRulesScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/world/EditGameRulesScreen
intermediary net/minecraft/class_5235
official fyy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
class
class
class
class
class
private static interface
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable ButtonWidget
private static final int
private final GameRules
private final Set
<EditGameRulesScreen.AbstractRuleWidget> (package private) final ThreePartsLayoutWidget
private static final Text
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionEditGameRulesScreen
(GameRules gameRules, Consumer<Optional<GameRules>> ruleSaveConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
init()
Called when a screen should be initialized.(package private) void
markInvalid
(EditGameRulesScreen.AbstractRuleWidget ruleWidget) (package private) void
markValid
(EditGameRulesScreen.AbstractRuleWidget ruleWidget) protected void
private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, shouldPause, switchFocus, tick, updateNarrator
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
TITLE
- Mappings:
Namespace Name Mixin selector named TITLE
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;TITLE:Lnet/minecraft/text/Text;
intermediary field_49558
Lnet/minecraft/class_5235;field_49558:Lnet/minecraft/class_2561;
official a
Lfyy;a:Lxv;
-
field_49559
private static final int field_49559- See Also:
- Mappings:
Namespace Name Mixin selector named field_49559
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;field_49559:I
intermediary field_49559
Lnet/minecraft/class_5235;field_49559:I
official b
Lfyy;b:I
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
intermediary field_49560
Lnet/minecraft/class_5235;field_49560:Lnet/minecraft/class_8132;
official c
Lfyy;c:Lfrt;
-
ruleSaver
- Mappings:
Namespace Name Mixin selector named ruleSaver
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleSaver:Ljava/util/function/Consumer;
intermediary field_24293
Lnet/minecraft/class_5235;field_24293:Ljava/util/function/Consumer;
official d
Lfyy;d:Ljava/util/function/Consumer;
-
invalidRuleWidgets
- Mappings:
Namespace Name Mixin selector named invalidRuleWidgets
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;invalidRuleWidgets:Ljava/util/Set;
intermediary field_24295
Lnet/minecraft/class_5235;field_24295:Ljava/util/Set;
official s
Lfyy;s:Ljava/util/Set;
-
gameRules
- Mappings:
Namespace Name Mixin selector named gameRules
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/GameRules;
intermediary field_24298
Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;
official u
Lfyy;u:Ldhd;
-
ruleListWidget
- Mappings:
Namespace Name Mixin selector named ruleListWidget
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleListWidget:Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$RuleListWidget;
intermediary field_49903
Lnet/minecraft/class_5235;field_49903:Lnet/minecraft/class_5235$class_5241;
official v
Lfyy;v:Lfyy$g;
-
doneButton
- Mappings:
Namespace Name Mixin selector named doneButton
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_24296
Lnet/minecraft/class_5235;field_24296:Lnet/minecraft/class_4185;
official w
Lfyy;w:Lfoe;
-
-
Constructor Details
-
EditGameRulesScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;<init>(Lnet/minecraft/world/GameRules;Ljava/util/function/Consumer;)V
intermediary <init>
Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)V
official <init>
Lfyy;<init>(Ldhd;Ljava/util/function/Consumer;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositions
in classScreen
- Mappings:
Namespace Name Mixin selector named refreshWidgetPositions
Lnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()V
intermediary method_48640
Lnet/minecraft/class_437;method_48640()V
official c
Lftx;c()V
-
close
public void close() -
updateDoneButton
private void updateDoneButton()- Mappings:
Namespace Name Mixin selector named updateDoneButton
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()V
intermediary method_27632
Lnet/minecraft/class_5235;method_27632()V
official l
Lfyy;l()V
-
markInvalid
- Mappings:
Namespace Name Mixin selector named markInvalid
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markInvalid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
intermediary method_27620
Lnet/minecraft/class_5235;method_27620(Lnet/minecraft/class_5235$class_5240;)V
official a
Lfyy;a(Lfyy$f;)V
-
markValid
- Mappings:
Namespace Name Mixin selector named markValid
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markValid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
intermediary method_27626
Lnet/minecraft/class_5235;method_27626(Lnet/minecraft/class_5235$class_5240;)V
official b
Lfyy;b(Lfyy$f;)V
-