Class RealmsSlotOptionsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.configuration.RealmsSlotOptionsScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final Stringstatic final List<Difficulty> private Difficultyprivate static final Componentprivate static final Componentprivate booleanprivate static final Componentprivate GameTypeprivate final HeaderAndFooterLayoutprivate final RealmsConfigureWorldScreenprivate final RealmsSlotprivate static final intprivate static final Componentprivate intprivate @Nullable RealmsSlotOptionsScreen.SettingsSliderprivate static final Componentprivate @Nullable StringWidgetprivate static final Componentprivate Stringprivate final RealmsServer.WorldTypeFields inherited from class RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, EXPIRATION_NOTIFICATION_DAYS, HARDCORE_HEART_SIZE, LOGO_HEIGHT, LOGO_LOCATION, LOGO_TEXTURE_HEIGHT, LOGO_TEXTURE_WIDTH, LOGO_WIDTH, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionRealmsSlotOptionsScreen(RealmsConfigureWorldScreen configureWorldScreen, RealmsSlot slot, RealmsServer.WorldType worldType, int activeSlot) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> TfindByIndex(List<T> values, int index, int defaultIndex) private static <T> intvoidinit()voidonClose()protected voidprivate voidprivate voidsetWorldName(String value) Methods inherited from class RealmsScreen
realmsLogo, rowMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
DEFAULT_DIFFICULTY
private static final int DEFAULT_DIFFICULTY- See Also:
-
DIFFICULTIES
-
DEFAULT_GAME_MODE
private static final int DEFAULT_GAME_MODE- See Also:
-
GAME_MODES
-
TITLE
-
WORLD_NAME_EDIT_LABEL
-
SPAWN_PROTECTION_TEXT
-
GAME_MODE_BUTTON
-
DIFFICULTY_BUTTON
-
FORCE_GAME_MODE_BUTTON
-
SPACING
private static final int SPACING- See Also:
-
layout
-
parentScreen
-
slot
-
worldType
-
defaultSlotName
-
spawnProtection
private int spawnProtection -
forceGameMode
private boolean forceGameMode -
difficulty
-
gameMode
-
worldName
-
warningHeader
-
spawnProtectionButton
-
-
Constructor Details
-
RealmsSlotOptionsScreen
public RealmsSlotOptionsScreen(RealmsConfigureWorldScreen configureWorldScreen, RealmsSlot slot, RealmsServer.WorldType worldType, int activeSlot)
-
-
Method Details
-
init
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
onClose
-
findByIndex
-
findIndex
-
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
setWorldName
-
saveSettings
private void saveSettings()
-