@Environment(value=CLIENT) public class RealmsSlotOptionsScreen extends RealmsScreen
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
RealmsSlotOptionsScreen.SettingsSlider |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent,
RealmsWorldOptions options,
RealmsServer.WorldType worldType,
int activeSlot) |
| Modifier and Type | Method and Description |
|---|---|
private Text |
commandBlocksTitle() |
private Text |
difficultyTitle() |
private Text |
forceGameModeTitle() |
private Text |
gameModeTitle() |
private String |
getSlotName() |
private static Text |
getWorldConfigureMessage(boolean enabled) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private Text |
pvpTitle() |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
private void |
saveSettings() |
private Text |
spawnAnimalsTitle() |
private Text |
spawnMonstersTitle() |
private Text |
spawnNPCsTitle() |
void |
tick() |
narrateLabels, rowaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, method_29638, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedpublic static final Text[] DIFFICULTIES
public static final Text[] GAME_MODES
private static final TranslatableText field_24207
private static final TranslatableText field_24208
private TextFieldWidget nameEdit
protected final RealmsConfigureWorldScreen parent
private int column1_x
private int column_width
private int column2_x
private final RealmsWorldOptions options
private final RealmsServer.WorldType worldType
private final int activeSlot
private int difficultyIndex
private int gameModeIndex
private Boolean pvp
private Boolean spawnNPCs
private Boolean spawnAnimals
private Boolean spawnMonsters
private Integer spawnProtection
private Boolean commandBlocks
private Boolean forceGameMode
private ButtonWidget pvpButton
private ButtonWidget spawnAnimalsButton
private ButtonWidget spawnMonstersButton
private ButtonWidget spawnNPCsButton
private RealmsSlotOptionsScreen.SettingsSlider spawnProtectionButton
private ButtonWidget commandBlocksButton
private ButtonWidget gameModeButton
private RealmsLabel titleLabel
private RealmsLabel toastMessage
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen parent, RealmsWorldOptions options, RealmsServer.WorldType worldType, int activeSlot)
public void tick()
tick in interface TickableElementtick in class RealmsScreenpublic boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screenprivate Text difficultyTitle()
private Text gameModeTitle()
private Text pvpTitle()
private Text spawnAnimalsTitle()
private Text spawnMonstersTitle()
private Text spawnNPCsTitle()
private Text commandBlocksTitle()
private Text forceGameModeTitle()
private static Text getWorldConfigureMessage(boolean enabled)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private String getSlotName()
private void saveSettings()