@Environment(value=CLIENT) public class RealmsSlotOptionsScreen extends RealmsScreen
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
RealmsSlotOptionsScreen.SettingsSlider |
| Modifier and Type | Field and Description |
|---|---|
private int |
activeSlot |
private int |
column_width |
private int |
column1_x |
private int |
column2_x |
private Boolean |
commandBlocks |
private ButtonWidget |
commandBlocksButton |
static String[] |
DIFFICULTIES |
private int |
difficultyIndex |
private Boolean |
forceGameMode |
static String[] |
GAME_MODES |
private ButtonWidget |
gameModeButton |
private int |
gameModeIndex |
private TextFieldWidget |
nameEdit |
private RealmsWorldOptions |
options |
protected RealmsConfigureWorldScreen |
parent |
private Boolean |
pvp |
private ButtonWidget |
pvpButton |
private Boolean |
spawnAnimals |
private ButtonWidget |
spawnAnimalsButton |
private Boolean |
spawnMonsters |
private ButtonWidget |
spawnMonstersButton |
private Boolean |
spawnNPCs |
private ButtonWidget |
spawnNPCsButton |
private Integer |
spawnProtection |
private RealmsSlotOptionsScreen.SettingsSlider |
spawnProtectionButton |
private RealmsLabel |
titleLabel |
private RealmsLabel |
toastMessage |
private RealmsServer.WorldType |
worldType |
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 String |
commandBlocksTitle() |
private String |
difficultyTitle() |
private String |
forceGameModeTitle() |
private String |
gameModeTitle() |
private String |
getSlotName() |
private static String |
getWorldConfigureMessage(boolean enabled) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private String |
pvpTitle() |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
private void |
saveSettings() |
private String |
spawnAnimalsTitle() |
private String |
spawnMonstersTitle() |
private String |
spawnNPCsTitle() |
void |
tick() |
narrateLabels, rowaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, 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, setInitialFocusmouseMovedpublic static final String[] DIFFICULTIES
public static final String[] GAME_MODES
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 class RealmsScreenpublic boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screenprivate String difficultyTitle()
private String gameModeTitle()
private String pvpTitle()
private String spawnAnimalsTitle()
private String spawnMonstersTitle()
private String spawnNPCsTitle()
private String commandBlocksTitle()
private String forceGameModeTitle()
private static String getWorldConfigureMessage(boolean enabled)
public void render(int mouseX,
int mouseY,
float delta)
private String getSlotName()
private void saveSettings()