Class RealmsConfigureWorldScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.NotifableRealmsScreen
com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Button
private int
private static final ResourceLocation
private static final ResourceLocation
private final RealmsMainScreen
private int
private static final org.apache.logging.log4j.Logger
private static final ITextComponent
private static final ResourceLocation
private static final ResourceLocation
private Button
private Button
private Button
private int
private static final ITextComponent
private static final ITextComponent
private static final ITextComponent
private static final ITextComponent
private static final ITextComponent
private RealmsServer
private final long
private Button
private boolean
private Button
private Button
private static final ITextComponent
private ITextComponent
private static final ITextComponent
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSlotButton
(int p_224402_1_) private void
protected void
callback
(WorldTemplate p_223627_1_) private int
centerButton
(int p_224374_1_, int p_224374_2_) void
closeTheWorld
(Screen p_237800_1_) private void
private void
drawClose
(MatrixStack p_237813_1_, int p_237813_2_, int p_237813_3_, int p_237813_4_, int p_237813_5_) private void
drawExpired
(MatrixStack p_237809_1_, int p_237809_2_, int p_237809_3_, int p_237809_4_, int p_237809_5_) private void
drawExpiring
(MatrixStack p_237804_1_, int p_237804_2_, int p_237804_3_, int p_237804_4_, int p_237804_5_, int p_237804_6_) private void
drawOpen
(MatrixStack p_237811_1_, int p_237811_2_, int p_237811_3_, int p_237811_4_, int p_237811_5_) private void
drawServerStatus
(MatrixStack p_237807_1_, int p_237807_2_, int p_237807_3_, int p_237807_4_, int p_237807_5_) private void
fetchServerData
(long p_224387_1_) private int
frame
(int p_224368_1_) private void
private void
private void
void
init()
private boolean
private void
joinRealm
(RealmsServer p_224385_1_) boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) private int
leftButton
(int p_224411_1_) void
openTheWorld
(boolean p_237802_1_, Screen p_237802_2_) void
removed()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) protected void
renderMousehoverTooltip
(MatrixStack p_237796_1_, ITextComponent p_237796_2_, int p_237796_3_, int p_237796_4_) void
saveSettings
(String p_224410_1_, String p_224410_2_) void
saveSlotSettings
(RealmsWorldOptions p_224386_1_) private void
void
private void
switchToEmptySlot
(int p_224388_1_, RealmsServer p_224388_2_) private void
switchToFullSlot
(int p_224403_1_, RealmsServer p_224403_2_) private void
void
tick()
Methods inherited from class net.minecraft.realms.RealmsScreen
narrateLabels, row
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
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
-
TITLE
-
WORLD_TITLE
-
MINIGAME_PREFIX
-
SERVER_EXPIRED_TOOLTIP
-
SERVER_EXPIRING_SOON_TOOLTIP
-
SERVER_EXPIRING_IN_DAY_TOOLTIP
-
SERVER_OPEN_TOOLTIP
-
SERVER_CLOSED_TOOLTIP
-
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
-
-
Constructor Details
-
RealmsConfigureWorldScreen
-
-
Method Details
-
init
public void init() -
addSlotButton
private void addSlotButton(int p_224402_1_) -
leftButton
private int leftButton(int p_224411_1_) -
centerButton
private int centerButton(int p_224374_1_, int p_224374_2_) -
tick
public void tick()- Specified by:
tick
in interfaceIScreen
- Overrides:
tick
in classRealmsScreen
-
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
frame
private int frame(int p_224368_1_) -
removed
public void removed() -
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classScreen
-
backButtonClicked
private void backButtonClicked() -
fetchServerData
private void fetchServerData(long p_224387_1_) -
disableButtons
private void disableButtons() -
joinRealm
-
switchToMinigame
private void switchToMinigame() -
switchToFullSlot
-
switchToEmptySlot
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack p_237796_1_, @Nullable ITextComponent p_237796_2_, int p_237796_3_, int p_237796_4_) -
drawServerStatus
private void drawServerStatus(MatrixStack p_237807_1_, int p_237807_2_, int p_237807_3_, int p_237807_4_, int p_237807_5_) -
drawExpired
private void drawExpired(MatrixStack p_237809_1_, int p_237809_2_, int p_237809_3_, int p_237809_4_, int p_237809_5_) -
drawExpiring
private void drawExpiring(MatrixStack p_237804_1_, int p_237804_2_, int p_237804_3_, int p_237804_4_, int p_237804_5_, int p_237804_6_) -
drawOpen
private void drawOpen(MatrixStack p_237811_1_, int p_237811_2_, int p_237811_3_, int p_237811_4_, int p_237811_5_) -
drawClose
private void drawClose(MatrixStack p_237813_1_, int p_237813_2_, int p_237813_3_, int p_237813_4_, int p_237813_5_) -
isMinigame
private boolean isMinigame() -
hideRegularButtons
private void hideRegularButtons() -
hide
-
show
-
hideMinigameButtons
private void hideMinigameButtons() -
saveSlotSettings
-
saveSettings
-
openTheWorld
-
closeTheWorld
-
stateChanged
public void stateChanged() -
callback
- Specified by:
callback
in classNotifableRealmsScreen
-
getNewScreen
-