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 Buttonprivate static final ResourceLocationprivate static final intprivate static final intprivate static final ResourceLocationprivate static final ResourceLocationprivate final RealmsMainScreenprivate intprivate static final org.slf4j.Loggerprivate 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_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, 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 pIndex) private intcenterButton(int pRow, int pColumn) voidprivate voidprivate voiddrawRealmStatus(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, ResourceLocation pSprite, Supplier<Component> pTooltipSupplier) private voiddrawServerStatus(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) private voidfetchServerData(long pServerId) private intframe(int pIndex) private voidprivate voidprivate voidvoidinit()private booleanprivate voidjoinRealm(RealmsServer pServer) private intleftButton(int pIndex) voidonClose()voidopenTheWorld(boolean pJoin) voidrender(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) Renders the graphical user interface (GUI) element.voidsaveSettings(String pKey, String pValue) voidsaveSlotSettings(RealmsWorldOptions pWorldOptions) private voidvoidprivate voidswitchToEmptySlot(int pSlot, RealmsServer pServer) private voidswitchToFullSlot(int pSlot, RealmsServer pServer) private voidprivate voidtemplateSelectionCallback(WorldTemplate p_167395_) 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, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, 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, 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
-
EXPIRED_SPRITE
-
EXPIRES_SOON_SPRITE
-
OPEN_SPRITE
-
CLOSED_SPRITE
-
LOGGER
private static final org.slf4j.Logger LOGGER -
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 -
slotButtonList
-
-
Constructor Details
-
RealmsConfigureWorldScreen
-
-
Method Details
-
init
public void init() -
addSlotButton
-
leftButton
private int leftButton(int pIndex) -
centerButton
private int centerButton(int pRow, int pColumn) -
render
Renders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
pGuiGraphics- the GuiGraphics object used for rendering.pMouseX- the x-coordinate of the mouse cursor.pMouseY- the y-coordinate of the mouse cursor.pPartialTick- the partial tick time.
-
frame
private int frame(int pIndex) -
onClose
public void onClose() -
fetchServerData
private void fetchServerData(long pServerId) -
disableButtons
private void disableButtons() -
joinRealm
-
switchToMinigame
private void switchToMinigame() -
switchToFullSlot
-
switchToEmptySlot
-
drawServerStatus
-
drawRealmStatus
private void drawRealmStatus(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, ResourceLocation pSprite, Supplier<Component> pTooltipSupplier) -
isMinigame
private boolean isMinigame() -
hideRegularButtons
private void hideRegularButtons() -
hide
-
show
-
hideMinigameButtons
private void hideMinigameButtons() -
saveSlotSettings
-
saveSettings
-
openTheWorld
public void openTheWorld(boolean pJoin) -
closeTheWorld
public void closeTheWorld() -
stateChanged
public void stateChanged() -
templateSelectionCallback
-
getNewScreen
-