@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 |
|---|---|
String |
getDifficultyButtonText(Difficulty difficulty) |
protected void |
init() |
private void |
lockDifficulty(boolean difficultyLocked) |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
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, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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)
public String getDifficultyButtonText(Difficulty difficulty)
private void lockDifficulty(boolean difficultyLocked)