@Environment(value=CLIENT) public class OptionsScreen 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, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
OptionsScreen(Screen parent,
GameOptions gameOptions) |
Modifier and Type | Method and Description |
---|---|
private Text |
getDifficultyButtonText(Difficulty difficulty) |
protected void |
init()
Called when a screen should be initialized.
|
private void |
lockDifficulty(boolean difficultyLocked) |
private void |
refreshResourcePacks(ResourcePackManager resourcePackManager) |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
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, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Option[] OPTIONS
private final Screen parent
private final GameOptions settings
private ButtonWidget difficultyButton
private LockButtonWidget lockDifficultyButton
private Difficulty difficulty
public OptionsScreen(Screen parent, GameOptions gameOptions)
protected void init()
This method is called when this screen is opened
or resized.
private void refreshResourcePacks(ResourcePackManager resourcePackManager)
private Text getDifficultyButtonText(Difficulty difficulty)
private void lockDifficulty(boolean difficultyLocked)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)