Class EditGameRulesScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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 exointermediary net/minecraft/class_5235named net/minecraft/client/gui/screen/world/EditGameRulesScreen
-
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 @Nullable List<OrderedText>private final GameRulesprivate final Set<EditGameRulesScreen.AbstractRuleWidget>Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields 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) voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta) private voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, 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, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, 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 net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradientMethods 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, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
ruleSaver
- Mappings:
Namespace Name Mixin selector official aLexo;a:Ljava/util/function/Consumer;intermediary field_24293Lnet/minecraft/class_5235;field_24293:Ljava/util/function/Consumer;named ruleSaverLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleSaver:Ljava/util/function/Consumer;
-
ruleListWidget
- Mappings:
Namespace Name Mixin selector official bLexo;b:Lexo$g;intermediary field_24294Lnet/minecraft/class_5235;field_24294:Lnet/minecraft/class_5235$class_5241;named ruleListWidgetLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;ruleListWidget:Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$RuleListWidget;
-
invalidRuleWidgets
- Mappings:
Namespace Name Mixin selector official cLexo;c:Ljava/util/Set;intermediary field_24295Lnet/minecraft/class_5235;field_24295:Ljava/util/Set;named invalidRuleWidgetsLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;invalidRuleWidgets:Ljava/util/Set;
-
doneButton
- Mappings:
Namespace Name Mixin selector official oLexo;o:Leoc;intermediary field_24296Lnet/minecraft/class_5235;field_24296:Lnet/minecraft/class_4185;named doneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
field_24297
- Mappings:
Namespace Name Mixin selector official pLexo;p:Ljava/util/List;intermediary field_24297Lnet/minecraft/class_5235;field_24297:Ljava/util/List;named field_24297Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen;field_24297:Ljava/util/List;
-
gameRules
- Mappings:
Namespace Name Mixin selector official qLexo;q:Lcme;intermediary field_24298Lnet/minecraft/class_5235;field_24298:Lnet/minecraft/class_1928;named gameRulesLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;gameRules:Lnet/minecraft/world/GameRules;
-
-
Constructor Details
-
EditGameRulesScreen
- Mappings:
Namespace Name Mixin selector official <init>Lexo;<init>(Lcme;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_5235;<init>(Lnet/minecraft/class_1928;Ljava/util/function/Consumer;)Vnamed <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:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLepa;a(Lehe;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
updateDoneButton
private void updateDoneButton()- Mappings:
Namespace Name Mixin selector official mLexo;m()Vintermediary method_27632Lnet/minecraft/class_5235;method_27632()Vnamed updateDoneButtonLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;updateDoneButton()V
-
markInvalid
- Mappings:
Namespace Name Mixin selector official aLexo;a(Lexo$f;)Vintermediary method_27620Lnet/minecraft/class_5235;method_27620(Lnet/minecraft/class_5235$class_5240;)Vnamed markInvalidLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markInvalid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
-
markValid
- Mappings:
Namespace Name Mixin selector official bLexo;b(Lexo$f;)Vintermediary method_27626Lnet/minecraft/class_5235;method_27626(Lnet/minecraft/class_5235$class_5240;)Vnamed markValidLnet/minecraft/client/gui/screen/world/EditGameRulesScreen;markValid(Lnet/minecraft/client/gui/screen/world/EditGameRulesScreen$AbstractRuleWidget;)V
-