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
public class RealmsConfigureWorldScreen extends NotifableRealmsScreen
-
-
Field Summary
-
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
Constructors Constructor Description RealmsConfigureWorldScreen(RealmsMainScreen p_i51774_1_, long p_i51774_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addSlotButton(int p_224402_1_)
private void
backButtonClicked()
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
disableButtons()
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_)
RealmsConfigureWorldScreen
getNewScreen()
private void
hide(Button p_237799_1_)
private void
hideMinigameButtons()
private void
hideRegularButtons()
void
init()
private boolean
isMinigame()
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(java.lang.String p_224410_1_, java.lang.String p_224410_2_)
void
saveSlotSettings(RealmsWorldOptions p_224386_1_)
private void
show(Button p_237806_1_)
void
stateChanged()
private void
switchToEmptySlot(int p_224388_1_, RealmsServer p_224388_2_)
private void
switchToFullSlot(int p_224403_1_, RealmsServer p_224403_2_)
private void
switchToMinigame()
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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
ON_ICON_LOCATION
private static final ResourceLocation ON_ICON_LOCATION
-
OFF_ICON_LOCATION
private static final ResourceLocation OFF_ICON_LOCATION
-
EXPIRED_ICON_LOCATION
private static final ResourceLocation EXPIRED_ICON_LOCATION
-
EXPIRES_SOON_ICON_LOCATION
private static final ResourceLocation EXPIRES_SOON_ICON_LOCATION
-
TITLE
private static final ITextComponent TITLE
-
WORLD_TITLE
private static final ITextComponent WORLD_TITLE
-
MINIGAME_PREFIX
private static final ITextComponent MINIGAME_PREFIX
-
SERVER_EXPIRED_TOOLTIP
private static final ITextComponent SERVER_EXPIRED_TOOLTIP
-
SERVER_EXPIRING_SOON_TOOLTIP
private static final ITextComponent SERVER_EXPIRING_SOON_TOOLTIP
-
SERVER_EXPIRING_IN_DAY_TOOLTIP
private static final ITextComponent SERVER_EXPIRING_IN_DAY_TOOLTIP
-
SERVER_OPEN_TOOLTIP
private static final ITextComponent SERVER_OPEN_TOOLTIP
-
SERVER_CLOSED_TOOLTIP
private static final ITextComponent SERVER_CLOSED_TOOLTIP
-
toolTip
@Nullable private ITextComponent toolTip
-
lastScreen
private final RealmsMainScreen lastScreen
-
serverData
@Nullable private RealmsServer serverData
-
serverId
private final long serverId
-
leftX
private int leftX
-
rightX
private int rightX
-
playersButton
private Button playersButton
-
settingsButton
private Button settingsButton
-
subscriptionButton
private Button subscriptionButton
-
optionsButton
private Button optionsButton
-
backupButton
private Button backupButton
-
resetWorldButton
private Button resetWorldButton
-
switchMinigameButton
private Button switchMinigameButton
-
stateChanged
private boolean stateChanged
-
animTick
private int animTick
-
clicks
private int clicks
-
-
Constructor Detail
-
RealmsConfigureWorldScreen
public RealmsConfigureWorldScreen(RealmsMainScreen p_i51774_1_, long p_i51774_2_)
-
-
Method Detail
-
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
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
frame
private int frame(int p_224368_1_)
-
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
private void joinRealm(RealmsServer p_224385_1_)
-
switchToMinigame
private void switchToMinigame()
-
switchToFullSlot
private void switchToFullSlot(int p_224403_1_, RealmsServer p_224403_2_)
-
switchToEmptySlot
private void switchToEmptySlot(int p_224388_1_, RealmsServer p_224388_2_)
-
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
private void hide(Button p_237799_1_)
-
show
private void show(Button p_237806_1_)
-
hideMinigameButtons
private void hideMinigameButtons()
-
saveSlotSettings
public void saveSlotSettings(RealmsWorldOptions p_224386_1_)
-
saveSettings
public void saveSettings(java.lang.String p_224410_1_, java.lang.String p_224410_2_)
-
openTheWorld
public void openTheWorld(boolean p_237802_1_, Screen p_237802_2_)
-
closeTheWorld
public void closeTheWorld(Screen p_237800_1_)
-
stateChanged
public void stateChanged()
-
callback
protected void callback(@Nullable WorldTemplate p_223627_1_)
- Specified by:
callback
in classNotifableRealmsScreen
-
getNewScreen
public RealmsConfigureWorldScreen getNewScreen()
-
-