Class RealmsConfigureWorldScreen
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.RealmsConfigureWorldScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Buttonprivate intprivate static final intprivate static final intprivate static final ResourceLocationprivate static final ResourceLocationprivate final RealmsMainScreenprivate intprivate static final org.slf4j.Loggerprivate static final ResourceLocationprivate static final ResourceLocationprivate Buttonprivate Buttonprivate Buttonprivate intprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate RealmsServerprivate final longprivate Buttonprivate final List<RealmsWorldSlotButton>private booleanprivate Buttonprivate Buttonprivate static final Componentprivate Componentprivate static final ComponentFields inherited from class net.minecraft.realms.RealmsScreen
COLOR_BLACK, COLOR_BRIGHT_YELLOW, COLOR_BUTTON_YELLOW, COLOR_DARK_GRAY, COLOR_DARK_GREEN, COLOR_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED, COLOR_RED_FADE, COLOR_WHITE, COLOR_YELLOW, COMPONENT_HEIGHT, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URLFields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate RealmsWorldSlotButtonaddSlotButton(int p_167386_) private voidprivate intcenterButton(int p_88466_, int p_88467_) voidcloseTheWorld(Screen p_88453_) private voidprivate voiddrawClose(GuiGraphics p_282771_, int p_282927_, int p_282519_, int p_282695_, int p_282579_) private voiddrawExpired(GuiGraphics p_283277_, int p_283238_, int p_282189_, int p_281748_, int p_282829_) private voiddrawExpiring(GuiGraphics p_283478_, int p_281486_, int p_283460_, int p_282257_, int p_283127_, int p_282411_) private voiddrawOpen(GuiGraphics p_283165_, int p_283465_, int p_282847_, int p_281579_, int p_283400_) private voiddrawServerStatus(GuiGraphics p_281709_, int p_88491_, int p_88492_, int p_88493_, int p_88494_) private voidfetchServerData(long p_88427_) private intframe(int p_88488_) private voidprivate voidprivate voidvoidinit()private booleanprivate voidjoinRealm(RealmsServer p_88439_) booleankeyPressed(int p_88417_, int p_88418_, int p_88419_) private intleftButton(int p_88464_) voidopenTheWorld(boolean p_88460_, Screen p_88461_) voidrender(GuiGraphics p_282982_, int p_281739_, int p_283097_, float p_282528_) protected voidrenderMousehoverTooltip(GuiGraphics p_281972_, Component p_282839_, int p_283007_, int p_283386_) voidsaveSettings(String p_88455_, String p_88456_) voidsaveSlotSettings(RealmsWorldOptions p_88445_) private voidvoidprivate voidswitchToEmptySlot(int p_88469_, RealmsServer p_88470_) private voidswitchToFullSlot(int p_88421_, RealmsServer p_88422_) private voidprivate voidtemplateSelectionCallback(WorldTemplate p_167395_) voidtick()Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, rowMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ON_ICON_LOCATION
-
OFF_ICON_LOCATION
-
EXPIRED_ICON_LOCATION
-
EXPIRES_SOON_ICON_LOCATION
-
WORLD_LIST_TITLE
-
TITLE
-
SERVER_EXPIRED_TOOLTIP
-
SERVER_EXPIRING_SOON_TOOLTIP
-
SERVER_EXPIRING_IN_DAY_TOOLTIP
-
SERVER_OPEN_TOOLTIP
-
SERVER_CLOSED_TOOLTIP
-
DEFAULT_BUTTON_WIDTH
private static final int DEFAULT_BUTTON_WIDTH- See Also:
-
DEFAULT_BUTTON_OFFSET
private static final int DEFAULT_BUTTON_OFFSET- See Also:
-
toolTip
-
lastScreen
-
serverData
-
serverId
private final long serverId -
leftX
private int leftX -
rightX
private int rightX -
playersButton
-
settingsButton
-
subscriptionButton
-
optionsButton
-
backupButton
-
resetWorldButton
-
switchMinigameButton
-
stateChanged
private boolean stateChanged -
animTick
private int animTick -
clicks
private int clicks -
slotButtonList
-
-
Constructor Details
-
RealmsConfigureWorldScreen
-
-
Method Details
-
init
public void init() -
addSlotButton
-
leftButton
private int leftButton(int p_88464_) -
centerButton
private int centerButton(int p_88466_, int p_88467_) -
tick
public void tick() -
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen
-
frame
private int frame(int p_88488_) -
keyPressed
public boolean keyPressed(int p_88417_, int p_88418_, int p_88419_) - Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
backButtonClicked
private void backButtonClicked() -
fetchServerData
private void fetchServerData(long p_88427_) -
disableButtons
private void disableButtons() -
joinRealm
-
switchToMinigame
private void switchToMinigame() -
switchToFullSlot
-
switchToEmptySlot
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(GuiGraphics p_281972_, @Nullable Component p_282839_, int p_283007_, int p_283386_) -
drawServerStatus
private void drawServerStatus(GuiGraphics p_281709_, int p_88491_, int p_88492_, int p_88493_, int p_88494_) -
drawExpired
private void drawExpired(GuiGraphics p_283277_, int p_283238_, int p_282189_, int p_281748_, int p_282829_) -
drawExpiring
private void drawExpiring(GuiGraphics p_283478_, int p_281486_, int p_283460_, int p_282257_, int p_283127_, int p_282411_) -
drawOpen
private void drawOpen(GuiGraphics p_283165_, int p_283465_, int p_282847_, int p_281579_, int p_283400_) -
drawClose
private void drawClose(GuiGraphics p_282771_, int p_282927_, int p_282519_, int p_282695_, int p_282579_) -
isMinigame
private boolean isMinigame() -
hideRegularButtons
private void hideRegularButtons() -
hide
-
show
-
hideMinigameButtons
private void hideMinigameButtons() -
saveSlotSettings
-
saveSettings
-
openTheWorld
-
closeTheWorld
-
stateChanged
public void stateChanged() -
templateSelectionCallback
-
getNewScreen
-