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 official eyk
intermediary net/minecraft/class_5235
named net/minecraft/client/gui/screen/world/EditGameRulesScreen
-
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 ButtonWidget
private @Nullable List<OrderedText>
private final GameRules
private final Set<EditGameRulesScreen.AbstractRuleWidget>
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, OPTIONS_BACKGROUND_TEXTURE, 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) void
render
(DrawContext context, int mouseX, int mouseY, float delta) private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, 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, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
ruleSaver
- Mappings:
Namespace Name Mixin selector official a
Leyk;a:Ljava/util/function/Consumer;
intermediary field_24293
Lnet/minecraft/class_5235;field_24293:Ljava/util/function/Consumer;
named ruleSaver
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleSaver:Ljava/util/function/Consumer;
-
ruleListWidget
- Mappings:
Namespace Name Mixin selector official b
Leyk;b:Leyk$g;
intermediary field_24294
Lnet/minecraft/class_5235;field_24294:Lnet/minecraft/class_5235$class_5241;
named ruleListWidget
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleListWidget:Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$RuleListWidget;
-
invalidRuleWidgets
- Mappings:
Namespace Name Mixin selector official c
Leyk;c:Ljava/util/Set;
intermediary field_24295
Lnet/minecraft/class_5235;field_24295:Ljava/util/Set;
named invalidRuleWidgets
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;invalidRuleWidgets:Ljava/util/Set;
-
doneButton
- Mappings:
Namespace Name Mixin selector official j
Leyk;j:Leou;
intermediary field_24296
Lnet/minecraft/class_5235;field_24296:Lnet/minecraft/class_4185;
named doneButton
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
field_24297
- Mappings:
Namespace Name Mixin selector official k
Leyk;k:Ljava/util/List;
intermediary field_24297
Lnet/minecraft/class_5235;field_24297:Ljava/util/List;
named field_24297
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;field_24297:Ljava/util/List;
-
gameRules
- Mappings:
Namespace Name Mixin selector official l
Leyk;l:Lcmb;
intermediary field_24298
Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;
named gameRules
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/GameRules;
-
-
Constructor Details
-
EditGameRulesScreen
- Mappings:
Namespace Name Mixin selector official <init>
Leyk;<init>(Lcmb;Ljava/util/function/Consumer;)V
intermediary <init>
Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)V
named <init>
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;<init>(Lnet/minecraft/world/GameRules;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(net.minecraft.client.gui.Element)
to set the element that is initially focused. -
close
public void close() -
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Leps;a(Leoj;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
updateDoneButton
private void updateDoneButton()- Mappings:
Namespace Name Mixin selector official l
Leyk;l()V
intermediary method_27632
Lnet/minecraft/class_5235;method_27632()V
named updateDoneButton
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()V
-
markInvalid
- Mappings:
Namespace Name Mixin selector official a
Leyk;a(Leyk$f;)V
intermediary method_27620
Lnet/minecraft/class_5235;method_27620(Lnet/minecraft/class_5235$class_5240;)V
named markInvalid
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markInvalid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
-
markValid
- Mappings:
Namespace Name Mixin selector official b
Leyk;b(Leyk$f;)V
intermediary method_27626
Lnet/minecraft/class_5235;method_27626(Lnet/minecraft/class_5235$class_5240;)V
named markValid
Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markValid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
-