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
public class RealmsResetWorldScreen extends NotifableRealmsScreen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RealmsResetWorldScreen.ResetType
static class
RealmsResetWorldScreen.ResetWorldInfo
(package private) class
RealmsResetWorldScreen.TexturedButton
-
Field Summary
-
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
Constructors Constructor Description RealmsResetWorldScreen(Screen p_i232215_1_, RealmsServer p_i232215_2_, java.lang.Runnable p_i232215_3_, java.lang.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_, java.lang.Runnable p_i232216_7_, java.lang.Runnable p_i232216_8_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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(java.lang.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
switchSlot()
void
switchSlot(java.lang.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
lastScreen
private final Screen lastScreen
-
serverData
private final RealmsServer serverData
-
titleLabel
private RealmsLabel titleLabel
-
subtitleLabel
private RealmsLabel subtitleLabel
-
title
private ITextComponent title
-
subtitle
private ITextComponent subtitle
-
buttonTitle
private ITextComponent buttonTitle
-
subtitleColor
private int subtitleColor
-
SLOT_FRAME_LOCATION
private static final ResourceLocation SLOT_FRAME_LOCATION
-
UPLOAD_LOCATION
private static final ResourceLocation UPLOAD_LOCATION
-
ADVENTURE_MAP_LOCATION
private static final ResourceLocation ADVENTURE_MAP_LOCATION
-
SURVIVAL_SPAWN_LOCATION
private static final ResourceLocation SURVIVAL_SPAWN_LOCATION
-
NEW_WORLD_LOCATION
private static final ResourceLocation NEW_WORLD_LOCATION
-
EXPERIENCE_LOCATION
private static final ResourceLocation EXPERIENCE_LOCATION
-
INSPIRATION_LOCATION
private static final ResourceLocation INSPIRATION_LOCATION
-
templates
private WorldTemplatePaginatedList templates
-
adventuremaps
private WorldTemplatePaginatedList adventuremaps
-
experiences
private WorldTemplatePaginatedList experiences
-
inspirations
private WorldTemplatePaginatedList inspirations
-
slot
public int slot
-
typeToReset
private RealmsResetWorldScreen.ResetType typeToReset
-
worldInfoToReset
private RealmsResetWorldScreen.ResetWorldInfo worldInfoToReset
-
worldTemplateToReset
private WorldTemplate worldTemplateToReset
-
resetTitle
@Nullable private ITextComponent resetTitle
-
resetWorldRunnable
private final java.lang.Runnable resetWorldRunnable
-
callback
private final java.lang.Runnable callback
-
-
Constructor Detail
-
RealmsResetWorldScreen
public RealmsResetWorldScreen(Screen p_i232215_1_, RealmsServer p_i232215_2_, java.lang.Runnable p_i232215_3_, java.lang.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_, java.lang.Runnable p_i232216_7_, java.lang.Runnable p_i232216_8_)
-
-
Method Detail
-
setSlot
public void setSlot(int p_224445_1_)
-
setResetTitle
public void setResetTitle(ITextComponent p_224432_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
-
frame
private int frame(int p_224434_1_)
-
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
-
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
protected void callback(@Nullable WorldTemplate p_223627_1_)
- Specified by:
callback
in classNotifableRealmsScreen
-
switchSlot
private void switchSlot()
-
switchSlot
public void switchSlot(java.lang.Runnable p_237952_1_)
-
resetWorldWithTemplate
public void resetWorldWithTemplate(WorldTemplate p_224435_1_)
-
triggerResetWorld
private void triggerResetWorld(RealmsResetWorldScreen.ResetWorldInfo p_224437_1_)
-
resetWorld
private void resetWorld(@Nullable java.lang.String p_237953_1_, @Nullable WorldTemplate p_237953_2_, int p_237953_3_, boolean p_237953_4_)
-
resetWorld
public void resetWorld(RealmsResetWorldScreen.ResetWorldInfo p_224438_1_)
-
-