@Environment(value=CLIENT) public class SettingsScreen extends Screen
| Modifier and Type | Field and Description |
|---|---|
private Difficulty |
difficulty |
private ButtonWidget |
difficultyButton |
private LockButtonWidget |
lockDifficultyButton |
private static Option[] |
OPTIONS |
private Screen |
parent |
private GameOptions |
settings |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
SettingsScreen(Screen parent,
GameOptions gameOptions) |
| Modifier and Type | Method and Description |
|---|---|
private Text |
getDifficultyButtonText(Difficulty difficulty) |
protected void |
init() |
private void |
lockDifficulty(boolean difficultyLocked) |
void |
removed() |
void |
render(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Option[] OPTIONS
private final Screen parent
private final GameOptions settings
private ButtonWidget difficultyButton
private LockButtonWidget lockDifficultyButton
private Difficulty difficulty
public SettingsScreen(Screen parent, GameOptions gameOptions)
private Text getDifficultyButtonText(Difficulty difficulty)
private void lockDifficulty(boolean difficultyLocked)
public void render(MatrixStack matrixStack, int mouseY, int int2, float float2)