Class RealmsResetWorldScreen
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.RealmsResetWorldScreen
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
static class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private WorldTemplatePaginatedList
private ITextComponent
private final Runnable
private static final ResourceLocation
private WorldTemplatePaginatedList
private static final ResourceLocation
private WorldTemplatePaginatedList
private final Screen
private static final org.apache.logging.log4j.Logger
private static final ResourceLocation
private ITextComponent
private final Runnable
private final RealmsServer
int
private static final ResourceLocation
private ITextComponent
private int
private RealmsLabel
private static final ResourceLocation
private WorldTemplatePaginatedList
private ITextComponent
private RealmsLabel
private RealmsResetWorldScreen.ResetType
private static final ResourceLocation
private WorldTemplate
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionRealmsResetWorldScreen
(Screen p_i232215_1_, RealmsServer p_i232215_2_, Runnable p_i232215_3_, Runnable p_i232215_4_) RealmsResetWorldScreen
(Screen p_i232216_1_, RealmsServer p_i232216_2_, ITextComponent p_i232216_3_, ITextComponent p_i232216_4_, int p_i232216_5_, ITextComponent p_i232216_6_, Runnable p_i232216_7_, Runnable p_i232216_8_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
callback
(WorldTemplate p_223627_1_) private void
drawFrame
(MatrixStack p_237948_1_, int p_237948_2_, int p_237948_3_, ITextComponent p_237948_4_, ResourceLocation p_237948_5_, boolean p_237948_6_, boolean p_237948_7_) private int
frame
(int p_224434_1_) void
init()
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) void
removed()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) void
resetWorld
(RealmsResetWorldScreen.ResetWorldInfo p_224438_1_) private void
resetWorld
(String p_237953_1_, WorldTemplate p_237953_2_, int p_237953_3_, boolean p_237953_4_) void
resetWorldWithTemplate
(WorldTemplate p_224435_1_) void
setResetTitle
(ITextComponent p_224432_1_) void
setSlot
(int p_224445_1_) private void
void
switchSlot
(Runnable p_237952_1_) private void
triggerResetWorld
(RealmsResetWorldScreen.ResetWorldInfo p_224437_1_) Methods inherited from class net.minecraft.realms.RealmsScreen
narrateLabels, row, tick
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 -
lastScreen
-
serverData
-
titleLabel
-
subtitleLabel
-
title
-
subtitle
-
buttonTitle
-
subtitleColor
private int subtitleColor -
SLOT_FRAME_LOCATION
-
UPLOAD_LOCATION
-
ADVENTURE_MAP_LOCATION
-
SURVIVAL_SPAWN_LOCATION
-
NEW_WORLD_LOCATION
-
EXPERIENCE_LOCATION
-
INSPIRATION_LOCATION
-
templates
-
adventuremaps
-
experiences
-
inspirations
-
slot
public int slot -
typeToReset
-
worldInfoToReset
-
worldTemplateToReset
-
resetTitle
-
resetWorldRunnable
-
callback
-
-
Constructor Details
-
RealmsResetWorldScreen
public RealmsResetWorldScreen(Screen p_i232215_1_, RealmsServer p_i232215_2_, Runnable p_i232215_3_, Runnable p_i232215_4_) -
RealmsResetWorldScreen
public RealmsResetWorldScreen(Screen p_i232216_1_, RealmsServer p_i232216_2_, ITextComponent p_i232216_3_, ITextComponent p_i232216_4_, int p_i232216_5_, ITextComponent p_i232216_6_, Runnable p_i232216_7_, Runnable p_i232216_8_)
-
-
Method Details
-
setSlot
public void setSlot(int p_224445_1_) -
setResetTitle
-
init
public void init() -
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
-
frame
private int frame(int p_224434_1_) -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
drawFrame
private void drawFrame(MatrixStack p_237948_1_, int p_237948_2_, int p_237948_3_, ITextComponent p_237948_4_, ResourceLocation p_237948_5_, boolean p_237948_6_, boolean p_237948_7_) -
callback
- Specified by:
callback
in classNotifableRealmsScreen
-
switchSlot
private void switchSlot() -
switchSlot
-
resetWorldWithTemplate
-
triggerResetWorld
-
resetWorld
private void resetWorld(@Nullable String p_237953_1_, @Nullable WorldTemplate p_237953_2_, int p_237953_3_, boolean p_237953_4_) -
resetWorld
-