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 fyz
-
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 @Nullable ButtonWidgetprivate static final intprivate final GameRulesprivate final Set<EditGameRulesScreen.AbstractRuleWidget> (package private) final ThreePartsLayoutWidgetprivate static final TextFields 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, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
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, 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, 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
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 aLfyz;a:Lxv;
-
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 bLfyz;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 cLfyz;c:Lfru;
-
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 dLfyz;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 sLfyz;s:Ljava/util/Set;
-
gameRules
- Mappings:
Namespace Name Mixin selector named gameRulesLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/GameRules;intermediary field_24298Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;official uLfyz;u:Ldhe;
-
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 vLfyz;v:Lfyz$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 wLfyz;w:Lfof;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)Vofficial <init>Lfyz;<init>(Ldhe;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 cLfty;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 lLfyz;l()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 aLfyz;a(Lfyz$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 bLfyz;b(Lfyz$f;)V
-