Class RealmsConfigureWorldScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
,Widget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Button
private int
private static int
private static int
private static ResourceLocation
private static ResourceLocation
private RealmsMainScreen
private int
private static org.apache.logging.log4j.Logger
private static Component
private static ResourceLocation
private static ResourceLocation
private Button
private Button
private Button
private int
private static Component
private static Component
private static Component
private static Component
private static Component
private RealmsServer
private long
private Button
private List<RealmsWorldSlotButton>
private boolean
private Button
private Button
private static Component
private Component
private static Component
Fields 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_HAT_HEIGHT, SKIN_HAT_U, SKIN_HAT_V, SKIN_HAT_WIDTH, SKIN_HEAD_HEIGHT, SKIN_HEAD_U, SKIN_HEAD_V, SKIN_HEAD_WIDTH, SKIN_TEX_HEIGHT, SKIN_TEX_WIDTH, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URL
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate RealmsWorldSlotButton
addSlotButton(int p_167386_)
private void
private int
centerButton(int p_88466_, int p_88467_)
void
closeTheWorld(Screen p_88453_)
private void
private void
private void
drawExpired(PoseStack p_88499_, int p_88500_, int p_88501_, int p_88502_, int p_88503_)
private void
drawExpiring(PoseStack p_88474_, int p_88475_, int p_88476_, int p_88477_, int p_88478_, int p_88479_)
private void
private void
drawServerStatus(PoseStack p_88490_, int p_88491_, int p_88492_, int p_88493_, int p_88494_)
private void
fetchServerData(long p_88427_)
private int
frame(int p_88488_)
private void
private void
private void
void
init()
private boolean
private void
joinRealm(RealmsServer p_88439_)
boolean
keyPressed(int p_88417_, int p_88418_, int p_88419_)
private int
leftButton(int p_88464_)
void
openTheWorld(boolean p_88460_, Screen p_88461_)
void
removed()
void
protected void
renderMousehoverTooltip(PoseStack p_88434_, Component p_88435_, int p_88436_, int p_88437_)
void
saveSettings(String p_88455_, String p_88456_)
void
saveSlotSettings(RealmsWorldOptions p_88445_)
private void
void
private void
switchToEmptySlot(int p_88469_, RealmsServer p_88470_)
private void
switchToFullSlot(int p_88421_, RealmsServer p_88422_)
private void
private void
templateSelectionCallback(WorldTemplate p_167395_)
void
tick()
Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ON_ICON_LOCATION
-
OFF_ICON_LOCATION
-
EXPIRED_ICON_LOCATION
-
EXPIRES_SOON_ICON_LOCATION
-
WORLD_LIST_TITLE
-
TITLE
-
MINIGAME_PREFIX
-
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:
- Constant Field Values
-
DEFAULT_BUTTON_OFFSET
private static final int DEFAULT_BUTTON_OFFSET- See Also:
- Constant Field Values
-
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
-
frame
private int frame(int p_88488_) -
removed
public void removed() -
keyPressed
public boolean keyPressed(int p_88417_, int p_88418_, int p_88419_)- Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
backButtonClicked
private void backButtonClicked() -
fetchServerData
private void fetchServerData(long p_88427_) -
disableButtons
private void disableButtons() -
joinRealm
-
switchToMinigame
private void switchToMinigame() -
switchToFullSlot
-
switchToEmptySlot
-
renderMousehoverTooltip
-
drawServerStatus
private void drawServerStatus(PoseStack p_88490_, int p_88491_, int p_88492_, int p_88493_, int p_88494_) -
drawExpired
private void drawExpired(PoseStack p_88499_, int p_88500_, int p_88501_, int p_88502_, int p_88503_) -
drawExpiring
private void drawExpiring(PoseStack p_88474_, int p_88475_, int p_88476_, int p_88477_, int p_88478_, int p_88479_) -
drawOpen
-
drawClose
-
isMinigame
private boolean isMinigame() -
hideRegularButtons
private void hideRegularButtons() -
hide
-
show
-
hideMinigameButtons
private void hideMinigameButtons() -
saveSlotSettings
-
saveSettings
-
openTheWorld
-
closeTheWorld
-
stateChanged
public void stateChanged() -
templateSelectionCallback
-
getNewScreen
-