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,TickableElement
@Environment(CLIENT) public class OptionsScreen extends Screen
- Mappings:
Namespace Name official duvintermediary net/minecraft/class_429named net/minecraft/client/gui/screen/option/OptionsScreen
-
Field Summary
Fields Modifier and Type Field Description private CyclingButtonWidget<Difficulty>difficultyButtonprivate LockButtonWidgetlockDifficultyButtonprivate static Option[]OPTIONSprivate Screenparentprivate GameOptionssettingsFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description OptionsScreen(Screen parent, GameOptions gameOptions) -
Method Summary
Modifier and Type Method Description protected 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
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, 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
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
OPTIONS
- Mappings:
Namespace Name Mixin selector official aLduv;a:[Ldqn;intermediary field_2504Lnet/minecraft/class_429;field_2504:[Lnet/minecraft/class_316;named OPTIONSLnet/minecraft/client/gui/screen/option/OptionsScreen;OPTIONS:[Lnet/minecraft/client/option/Option;
-
parent
- Mappings:
Namespace Name Mixin selector official bLduv;b:Ldve;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 cLduv;c:Ldqo;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 pLduv;p:Ldsa;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 qLduv;q:Ldsf;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>Lduv;<init>(Ldve;Ldqo;)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.
-
refreshResourcePacks
- Mappings:
Namespace Name Mixin selector official aLduv;a(Lacm;)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 cLduv;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 aLdsq;a(Ldlr;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
-