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/EditGameRulesScreenintermediary net/minecraft/class_5235official gwp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassclassclassclassclassprivate static interfaceNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ButtonWidgetprivate static final int(package private) final GameRulesprivate final Set<EditGameRulesScreen.AbstractRuleWidget> (package private) final ThreePartsLayoutWidgetprivate static final TextFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width -
Constructor Summary
ConstructorsConstructorDescriptionEditGameRulesScreen(GameRules gameRules, Consumer<Optional<GameRules>> ruleSaveConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidinit()Called when a screen should be initialized.(package private) voidmarkInvalid(EditGameRulesScreen.AbstractRuleWidget ruleWidget) (package private) voidmarkValid(EditGameRulesScreen.AbstractRuleWidget ruleWidget) protected voidprivate voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, switchFocus, tick, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, isClickable, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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 TITLELnet/minecraft/client/gui/screen/world/EditGameRulesScreen;TITLE:Lnet/minecraft/text/Text;intermediary field_49558Lnet/minecraft/class_5235;field_49558:Lnet/minecraft/class_2561;official aLgwp;a:Lyh;
-
field_49559
private static final int field_49559- See Also:
- Mappings:
Namespace Name Mixin selector named field_49559Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;field_49559:Iintermediary field_49559Lnet/minecraft/class_5235;field_49559:Iofficial bLgwp;b:I
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;intermediary field_49560Lnet/minecraft/class_5235;field_49560:Lnet/minecraft/class_8132;official cLgwp;c:Lgnm;
-
ruleSaver
- Mappings:
Namespace Name Mixin selector named ruleSaverLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleSaver:Ljava/util/function/Consumer;intermediary field_24293Lnet/minecraft/class_5235;field_24293:Ljava/util/function/Consumer;official dLgwp;d:Ljava/util/function/Consumer;
-
invalidRuleWidgets
- Mappings:
Namespace Name Mixin selector named invalidRuleWidgetsLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;invalidRuleWidgets:Ljava/util/Set;intermediary field_24295Lnet/minecraft/class_5235;field_24295:Ljava/util/Set;official eLgwp;e:Ljava/util/Set;
-
gameRules
- Mappings:
Namespace Name Mixin selector named gameRulesLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/rule/GameRules;intermediary field_24298Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;official fLgwp;f:Less;
-
ruleListWidget
- Mappings:
Namespace Name Mixin selector named ruleListWidgetLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleListWidget:Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$RuleListWidget;intermediary field_49903Lnet/minecraft/class_5235;field_49903:Lnet/minecraft/class_5235$class_5241;official tLgwp;t:Lgwp$g;
-
doneButton
- Mappings:
Namespace Name Mixin selector named doneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_24296Lnet/minecraft/class_5235;field_24296:Lnet/minecraft/class_4185;official uLgwp;u:Lghv;
-
-
Constructor Details
-
EditGameRulesScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;<init>(Lnet/minecraft/world/rule/GameRules;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)Vofficial <init>Lgwp;<init>(Less;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:
refreshWidgetPositionsin classScreen- Mappings:
Namespace Name Mixin selector named refreshWidgetPositionsLnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()Vintermediary method_48640Lnet/minecraft/class_437;method_48640()Vofficial cLgqt;c()V
-
close
public void close() -
updateDoneButton
private void updateDoneButton()- Mappings:
Namespace Name Mixin selector named updateDoneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()Vintermediary method_27632Lnet/minecraft/class_5235;method_27632()Vofficial oLgwp;o()V
-
markInvalid
- Mappings:
Namespace Name Mixin selector named markInvalidLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markInvalid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)Vintermediary method_27620Lnet/minecraft/class_5235;method_27620(Lnet/minecraft/class_5235$class_5240;)Vofficial aLgwp;a(Lgwp$f;)V
-
markValid
- Mappings:
Namespace Name Mixin selector named markValidLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markValid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)Vintermediary method_27626Lnet/minecraft/class_5235;method_27626(Lnet/minecraft/class_5235$class_5240;)Vofficial bLgwp;b(Lgwp$f;)V
-