Class OptionsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.option.OptionsScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement
- Mappings:
Namespace Name official eprintermediary net/minecraft/class_429named net/minecraft/client/gui/screen/option/OptionsScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Textprivate static final intprivate static final Textprivate CyclingButtonWidget<Difficulty>private static final Textprivate LockButtonWidgetprivate final Screenprivate static final Textprivate final GameOptionsprivate static final Textprivate static final Textprivate static final Textprivate static final TextFields 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, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ButtonWidgetcreateButton(Text message, Supplier<Screen> screenSupplier) static CyclingButtonWidget<Difficulty>createDifficultyButtonWidget(int x, int y, String translationKey, MinecraftClient client) private class_8021protected voidinit()Called when a screen should be initialized.private voidlockDifficulty(boolean difficultyLocked) private voidrefreshResourcePacks(ResourcePackManager resourcePackManager) voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, method_48202, method_48262, method_48263, method_48265, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffsetMethods 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.ParentElement
charTyped, focusOn, hoveredElement, isFocused, keyReleased, method_48205, method_48218, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
SKIN_CUSTOMIZATION_TEXT
- Mappings:
Namespace Name Mixin selector official aLepr;a:Lsu;intermediary field_41345Lnet/minecraft/class_429;field_41345:Lnet/minecraft/class_2561;named SKIN_CUSTOMIZATION_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;SKIN_CUSTOMIZATION_TEXT:Lnet/minecraft/text/Text;
-
SOUNDS_TEXT
- Mappings:
Namespace Name Mixin selector official bLepr;b:Lsu;intermediary field_41346Lnet/minecraft/class_429;field_41346:Lnet/minecraft/class_2561;named SOUNDS_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;SOUNDS_TEXT:Lnet/minecraft/text/Text;
-
VIDEO_TEXT
- Mappings:
Namespace Name Mixin selector official cLepr;c:Lsu;intermediary field_41347Lnet/minecraft/class_429;field_41347:Lnet/minecraft/class_2561;named VIDEO_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;VIDEO_TEXT:Lnet/minecraft/text/Text;
-
CONTROL_TEXT
- Mappings:
Namespace Name Mixin selector official nLepr;n:Lsu;intermediary field_41348Lnet/minecraft/class_429;field_41348:Lnet/minecraft/class_2561;named CONTROL_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;CONTROL_TEXT:Lnet/minecraft/text/Text;
-
LANGUAGE_TEXT
- Mappings:
Namespace Name Mixin selector official oLepr;o:Lsu;intermediary field_41349Lnet/minecraft/class_429;field_41349:Lnet/minecraft/class_2561;named LANGUAGE_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;LANGUAGE_TEXT:Lnet/minecraft/text/Text;
-
CHAT_TEXT
- Mappings:
Namespace Name Mixin selector official pLepr;p:Lsu;intermediary field_41350Lnet/minecraft/class_429;field_41350:Lnet/minecraft/class_2561;named CHAT_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;CHAT_TEXT:Lnet/minecraft/text/Text;
-
RESOURCE_PACK_TEXT
- Mappings:
Namespace Name Mixin selector official qLepr;q:Lsu;intermediary field_41351Lnet/minecraft/class_429;field_41351:Lnet/minecraft/class_2561;named RESOURCE_PACK_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;RESOURCE_PACK_TEXT:Lnet/minecraft/text/Text;
-
ACCESSIBILITY_TEXT
- Mappings:
Namespace Name Mixin selector official rLepr;r:Lsu;intermediary field_41352Lnet/minecraft/class_429;field_41352:Lnet/minecraft/class_2561;named ACCESSIBILITY_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;ACCESSIBILITY_TEXT:Lnet/minecraft/text/Text;
-
TELEMETRY_TEXT
- Mappings:
Namespace Name Mixin selector official sLepr;s:Lsu;intermediary field_41353Lnet/minecraft/class_429;field_41353:Lnet/minecraft/class_2561;named TELEMETRY_TEXTLnet/minecraft/client/gui/screen/option/OptionsScreen;TELEMETRY_TEXT:Lnet/minecraft/text/Text;
-
COLUMNS
private static final int COLUMNS- See Also:
- Mappings:
Namespace Name Mixin selector official tLepr;t:Iintermediary field_41354Lnet/minecraft/class_429;field_41354:Inamed COLUMNSLnet/minecraft/client/gui/screen/option/OptionsScreen;COLUMNS:I
-
parent
- Mappings:
Namespace Name Mixin selector official uLepr;u:Leqa;intermediary field_2501Lnet/minecraft/class_429;field_2501:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/option/OptionsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
settings
- Mappings:
Namespace Name Mixin selector official vLepr;v:Lejx;intermediary field_2502Lnet/minecraft/class_429;field_2502:Lnet/minecraft/class_315;named settingsLnet/minecraft/client/gui/screen/option/OptionsScreen;settings:Lnet/minecraft/client/option/GameOptions;
-
difficultyButton
- Mappings:
Namespace Name Mixin selector official wLepr;w:Lelt;intermediary field_2500Lnet/minecraft/class_429;field_2500:Lnet/minecraft/class_5676;named difficultyButtonLnet/minecraft/client/gui/screen/option/OptionsScreen;difficultyButton:Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
lockDifficultyButton
- Mappings:
Namespace Name Mixin selector official xLepr;x:Lely;intermediary field_2503Lnet/minecraft/class_429;field_2503:Lnet/minecraft/class_347;named lockDifficultyButtonLnet/minecraft/client/gui/screen/option/OptionsScreen;lockDifficultyButton:Lnet/minecraft/client/gui/widget/LockButtonWidget;
-
-
Constructor Details
-
OptionsScreen
- Mappings:
Namespace Name Mixin selector official <init>Lepr;<init>(Leqa;Lejx;)Vintermediary <init>Lnet/minecraft/class_429;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_315;)Vnamed <init>Lnet/minecraft/client/gui/screen/option/OptionsScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/option/GameOptions;)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.
-
createTopRightButton
- Mappings:
Namespace Name Mixin selector official jLepr;j()Lenv;intermediary method_47628Lnet/minecraft/class_429;method_47628()Lnet/minecraft/class_8021;named createTopRightButtonLnet/minecraft/client/gui/screen/option/OptionsScreen;createTopRightButton()Lnet/minecraft/class_8021;
-
createDifficultyButtonWidget
public static CyclingButtonWidget<Difficulty> createDifficultyButtonWidget(int x, int y, String translationKey, MinecraftClient client) - Mappings:
Namespace Name Mixin selector official aLepr;a(IILjava/lang/String;Lejt;)Lelt;intermediary method_39486Lnet/minecraft/class_429;method_39486(IILjava/lang/String;Lnet/minecraft/class_310;)Lnet/minecraft/class_5676;named createDifficultyButtonWidgetLnet/minecraft/client/gui/screen/option/OptionsScreen;createDifficultyButtonWidget(IILjava/lang/String;Lnet/minecraft/client/MinecraftClient;)Lnet/minecraft/client/gui/widget/CyclingButtonWidget;
-
refreshResourcePacks
- Mappings:
Namespace Name Mixin selector official aLepr;a(Lajz;)Vintermediary method_29975Lnet/minecraft/class_429;method_29975(Lnet/minecraft/class_3283;)Vnamed refreshResourcePacksLnet/minecraft/client/gui/screen/option/OptionsScreen;refreshResourcePacks(Lnet/minecraft/resource/ResourcePackManager;)V
-
lockDifficulty
private void lockDifficulty(boolean difficultyLocked) - Mappings:
Namespace Name Mixin selector official cLepr;c(Z)Vintermediary method_20374Lnet/minecraft/class_429;method_20374(Z)Vnamed lockDifficultyLnet/minecraft/client/gui/screen/option/OptionsScreen;lockDifficulty(Z)V
-
removed
public void removed() -
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLemj;a(Leer;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
-
createButton
- Mappings:
Namespace Name Mixin selector official aLepr;a(Lsu;Ljava/util/function/Supplier;)Lelm;intermediary method_47625Lnet/minecraft/class_429;method_47625(Lnet/minecraft/class_2561;Ljava/util/function/Supplier;)Lnet/minecraft/class_4185;named createButtonLnet/minecraft/client/gui/screen/option/OptionsScreen;createButton(Lnet/minecraft/text/Text;Ljava/util/function/Supplier;)Lnet/minecraft/client/gui/widget/ButtonWidget;
-