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 frs
-
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, 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.protected void(package private) voidmarkInvalid(EditGameRulesScreen.AbstractRuleWidget ruleWidget) (package private) voidmarkValid(EditGameRulesScreen.AbstractRuleWidget ruleWidget) private voidMethods 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, method_59870, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods 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 aLfrs;a:Lxo;
-
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 bLfrs;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 cLfrs;c:Lfkq;
-
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 dLfrs;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 rLfrs;r: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 sLfrs;s:Ldbt;
-
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 uLfrs;u:Lfrs$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 vLfrs;v:Lfhd;
-
-
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>Lfrs;<init>(Ldbt;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 updateDoneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()Vintermediary method_27632Lnet/minecraft/class_5235;method_27632()Vofficial mLfrs;m()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 aLfrs;a(Lfrs$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 bLfrs;b(Lfrs$f;)V
-