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 fsj
-
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, 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.protected void
(package private) void
markInvalid
(EditGameRulesScreen.AbstractRuleWidget ruleWidget) (package private) void
markValid
(EditGameRulesScreen.AbstractRuleWidget ruleWidget) private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenError
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
Lfsj;a:Lwu;
-
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
Lfsj;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
Lfsj;c:Lflh;
-
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 q
Lfsj;q: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 r
Lfsj;r: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 s
Lfsj;s:Ldcc;
-
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 u
Lfsj;u:Lfsj$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 v
Lfsj;v:Lfhu;
-
-
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>
Lfsj;<init>(Ldcc;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.
This should call
Screen.setInitialFocus()
to set the element that is initially focused. -
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 m
Lfsj;m()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
Lfsj;a(Lfsj$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
Lfsj;b(Lfsj$f;)V
-