Class RealmsResetWorldScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsResetWorldScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class RealmsResetWorldScreen extends RealmsScreen
- Mappings:
Namespace Name official dosintermediary net/minecraft/class_4410named net/minecraft/client/realms/gui/screen/RealmsResetWorldScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classRealmsResetWorldScreen.FrameButton -
Field Summary
Fields Modifier and Type Field Description private static IdentifierADVENTURE_TEXTUREprivate WorldTemplatePaginatedListadventureWorldTemplatesprivate TextbuttonTitleprivate static IdentifierEXPERIENCE_TEXTUREprivate WorldTemplatePaginatedListexperienceWorldTemplatesprivate static IdentifierINSPIRATION_TEXTUREprivate WorldTemplatePaginatedListinspirationWorldTemplatesprivate static LoggerLOGGERprivate static IdentifierNEW_WORLD_TEXTUREprivate WorldTemplatePaginatedListnormalWorldTemplatesprivate Screenparentprivate RunnableresetCallbackprivate TextresetTitleprivate RunnableselectFileUploadCallbackprivate RealmsServerserverDataintslotprivate static IdentifierSLOT_FRAME_TEXTUREprivate Textsubtitleprivate intsubtitleColorprivate RealmsLabelsubtitleLabelprivate static IdentifierSURVIVAL_SPAWN_TEXTUREprivate Texttitleprivate RealmsLabeltitleLabelprivate static IdentifierUPLOAD_TEXTUREFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmsResetWorldScreen(Screen parent, RealmsServer server, Runnable resetCallback, Runnable selectFileUploadCallback)RealmsResetWorldScreen(Screen parent, RealmsServer server, Text title, Text subtitle, int subtitleColor, Text buttonTitle, Runnable resetCallback, Runnable selectFileUploadCallback) -
Method Summary
Modifier and Type Method Description private voiddrawFrame(MatrixStack matrices, int x, int y, Text text, Identifier texture, boolean hovered, boolean mouseOver)private intframe(int i)voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private voidmethod_32490(LongRunningTask longRunningTask)private voidmethod_32493(Runnable runnable)private voidonResetNormalWorld(ResetWorldInfo info)private voidonSelectWorldTemplate(WorldTemplate template)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidsetResetTitle(Text resetTitle)voidsetSlot(int slot)voidswitchSlot(Runnable callback)Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row, tickMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLdos;b:Lorg/apache/logging/log4j/Logger;intermediary field_19999Lnet/minecraft/class_4410;field_19999:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
SLOT_FRAME_TEXTURE
- Mappings:
Namespace Name Mixin selector official wLdos;w:Lwb;intermediary field_22713Lnet/minecraft/class_4410;field_22713:Lnet/minecraft/class_2960;named SLOT_FRAME_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;SLOT_FRAME_TEXTURE:Lnet/minecraft/util/Identifier;
-
UPLOAD_TEXTURE
- Mappings:
Namespace Name Mixin selector official xLdos;x:Lwb;intermediary field_22714Lnet/minecraft/class_4410;field_22714:Lnet/minecraft/class_2960;named UPLOAD_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;UPLOAD_TEXTURE:Lnet/minecraft/util/Identifier;
-
ADVENTURE_TEXTURE
- Mappings:
Namespace Name Mixin selector official yLdos;y:Lwb;intermediary field_22715Lnet/minecraft/class_4410;field_22715:Lnet/minecraft/class_2960;named ADVENTURE_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;ADVENTURE_TEXTURE:Lnet/minecraft/util/Identifier;
-
SURVIVAL_SPAWN_TEXTURE
- Mappings:
Namespace Name Mixin selector official zLdos;z:Lwb;intermediary field_22716Lnet/minecraft/class_4410;field_22716:Lnet/minecraft/class_2960;named SURVIVAL_SPAWN_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;SURVIVAL_SPAWN_TEXTURE:Lnet/minecraft/util/Identifier;
-
NEW_WORLD_TEXTURE
- Mappings:
Namespace Name Mixin selector official ALdos;A:Lwb;intermediary field_22708Lnet/minecraft/class_4410;field_22708:Lnet/minecraft/class_2960;named NEW_WORLD_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;NEW_WORLD_TEXTURE:Lnet/minecraft/util/Identifier;
-
EXPERIENCE_TEXTURE
- Mappings:
Namespace Name Mixin selector official BLdos;B:Lwb;intermediary field_22709Lnet/minecraft/class_4410;field_22709:Lnet/minecraft/class_2960;named EXPERIENCE_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;EXPERIENCE_TEXTURE:Lnet/minecraft/util/Identifier;
-
INSPIRATION_TEXTURE
- Mappings:
Namespace Name Mixin selector official CLdos;C:Lwb;intermediary field_22710Lnet/minecraft/class_4410;field_22710:Lnet/minecraft/class_2960;named INSPIRATION_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;INSPIRATION_TEXTURE:Lnet/minecraft/util/Identifier;
-
parent
- Mappings:
Namespace Name Mixin selector official cLdos;c:Ldvm;intermediary field_20000Lnet/minecraft/class_4410;field_20000:Lnet/minecraft/class_437;named parentLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
serverData
- Mappings:
Namespace Name Mixin selector official pLdos;p:Ldnd;intermediary field_20001Lnet/minecraft/class_4410;field_20001:Lnet/minecraft/class_4877;named serverDataLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;serverData:Lnet/minecraft/client/realms/dto/RealmsServer;
-
titleLabel
- Mappings:
Namespace Name Mixin selector official qLdos;q:Lewn;intermediary field_20003Lnet/minecraft/class_4410;field_20003:Lnet/minecraft/class_4903;named titleLabelLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;titleLabel:Lnet/minecraft/client/realms/RealmsLabel;
-
subtitleLabel
- Mappings:
Namespace Name Mixin selector official rLdos;r:Lewn;intermediary field_20004Lnet/minecraft/class_4410;field_20004:Lnet/minecraft/class_4903;named subtitleLabelLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;subtitleLabel:Lnet/minecraft/client/realms/RealmsLabel;
-
title
- Mappings:
Namespace Name Mixin selector official sLdos;s:Loi;intermediary field_20005Lnet/minecraft/class_4410;field_20005:Lnet/minecraft/class_2561;named titleLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;title:Lnet/minecraft/text/Text;
-
subtitle
- Mappings:
Namespace Name Mixin selector official tLdos;t:Loi;intermediary field_20006Lnet/minecraft/class_4410;field_20006:Lnet/minecraft/class_2561;named subtitleLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;subtitle:Lnet/minecraft/text/Text;
-
buttonTitle
- Mappings:
Namespace Name Mixin selector official uLdos;u:Loi;intermediary field_20007Lnet/minecraft/class_4410;field_20007:Lnet/minecraft/class_2561;named buttonTitleLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;buttonTitle:Lnet/minecraft/text/Text;
-
subtitleColor
private int subtitleColor- Mappings:
Namespace Name Mixin selector official vLdos;v:Iintermediary field_20008Lnet/minecraft/class_4410;field_20008:Inamed subtitleColorLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;subtitleColor:I
-
normalWorldTemplates
- Mappings:
Namespace Name Mixin selector official DLdos;D:Ldns;intermediary field_20495Lnet/minecraft/class_4410;field_20495:Lnet/minecraft/class_4891;named normalWorldTemplatesLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;normalWorldTemplates:Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;
-
adventureWorldTemplates
- Mappings:
Namespace Name Mixin selector official ELdos;E:Ldns;intermediary field_20496Lnet/minecraft/class_4410;field_20496:Lnet/minecraft/class_4891;named adventureWorldTemplatesLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;adventureWorldTemplates:Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;
-
experienceWorldTemplates
- Mappings:
Namespace Name Mixin selector official FLdos;F:Ldns;intermediary field_20497Lnet/minecraft/class_4410;field_20497:Lnet/minecraft/class_4891;named experienceWorldTemplatesLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;experienceWorldTemplates:Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;
-
inspirationWorldTemplates
- Mappings:
Namespace Name Mixin selector official GLdos;G:Ldns;intermediary field_20498Lnet/minecraft/class_4410;field_20498:Lnet/minecraft/class_4891;named inspirationWorldTemplatesLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;inspirationWorldTemplates:Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;
-
slot
public int slot- Mappings:
Namespace Name Mixin selector official aLdos;a:Iintermediary field_19998Lnet/minecraft/class_4410;field_19998:Inamed slotLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;slot:I
-
resetTitle
- Mappings:
Namespace Name Mixin selector official HLdos;H:Loi;intermediary field_20501Lnet/minecraft/class_4410;field_20501:Lnet/minecraft/class_2561;named resetTitleLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;resetTitle:Lnet/minecraft/text/Text;
-
resetCallback
- Mappings:
Namespace Name Mixin selector official ILdos;I:Ljava/lang/Runnable;intermediary field_22711Lnet/minecraft/class_4410;field_22711:Ljava/lang/Runnable;named resetCallbackLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;resetCallback:Ljava/lang/Runnable;
-
selectFileUploadCallback
- Mappings:
Namespace Name Mixin selector official JLdos;J:Ljava/lang/Runnable;intermediary field_22712Lnet/minecraft/class_4410;field_22712:Ljava/lang/Runnable;named selectFileUploadCallbackLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;selectFileUploadCallback:Ljava/lang/Runnable;
-
-
Constructor Details
-
RealmsResetWorldScreen
public RealmsResetWorldScreen(Screen parent, RealmsServer server, Runnable resetCallback, Runnable selectFileUploadCallback)- Mappings:
Namespace Name Mixin selector official <init>Ldos;<init>(Ldvm;Ldnd;Ljava/lang/Runnable;Ljava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_4410;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_4877;Ljava/lang/Runnable;Ljava/lang/Runnable;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/realms/dto/RealmsServer;Ljava/lang/Runnable;Ljava/lang/Runnable;)V
-
RealmsResetWorldScreen
public RealmsResetWorldScreen(Screen parent, RealmsServer server, Text title, Text subtitle, int subtitleColor, Text buttonTitle, Runnable resetCallback, Runnable selectFileUploadCallback)- Mappings:
Namespace Name Mixin selector official <init>Ldos;<init>(Ldvm;Ldnd;Loi;Loi;ILoi;Ljava/lang/Runnable;Ljava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_4410;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_4877;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;ILnet/minecraft/class_2561;Ljava/lang/Runnable;Ljava/lang/Runnable;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/realms/dto/RealmsServer;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;ILnet/minecraft/text/Text;Ljava/lang/Runnable;Ljava/lang/Runnable;)V
-
-
Method Details
-
setSlot
public void setSlot(int slot)- Mappings:
Namespace Name Mixin selector official aLdos;a(I)Vintermediary method_21379Lnet/minecraft/class_4410;method_21379(I)Vnamed setSlotLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;setSlot(I)V
-
setResetTitle
- Mappings:
Namespace Name Mixin selector official aLdos;a(Loi;)Vintermediary method_21376Lnet/minecraft/class_4410;method_21376(Lnet/minecraft/class_2561;)Vnamed setResetTitleLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;setResetTitle(Lnet/minecraft/text/Text;)V
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
removed
public void removed() -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdtb;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
frame
private int frame(int i)- Mappings:
Namespace Name Mixin selector official bLdos;b(I)Iintermediary method_21384Lnet/minecraft/class_4410;method_21384(I)Inamed frameLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;frame(I)I
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdsy;a(Ldlz;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawFrame
private void drawFrame(MatrixStack matrices, int x, int y, Text text, Identifier texture, boolean hovered, boolean mouseOver)- Mappings:
Namespace Name Mixin selector official aLdos;a(Ldlz;IILoi;Lwb;ZZ)Vintermediary method_21370Lnet/minecraft/class_4410;method_21370(Lnet/minecraft/class_4587;IILnet/minecraft/class_2561;Lnet/minecraft/class_2960;ZZ)Vnamed drawFrameLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;drawFrame(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;ZZ)V
-
method_32490
- Mappings:
Namespace Name Mixin selector official aLdos;a(Ldps;)Vintermediary method_32490Lnet/minecraft/class_4410;method_32490(Lnet/minecraft/class_4358;)Vnamed method_32490Lnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;method_32490(Lnet/minecraft/client/realms/task/LongRunningTask;)V
-
switchSlot
- Mappings:
Namespace Name Mixin selector official aLdos;a(Ljava/lang/Runnable;)Vintermediary method_21377Lnet/minecraft/class_4410;method_21377(Ljava/lang/Runnable;)Vnamed switchSlotLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;switchSlot(Ljava/lang/Runnable;)V
-
onSelectWorldTemplate
- Mappings:
Namespace Name Mixin selector official aLdos;a(Ldnr;)Vintermediary method_32488Lnet/minecraft/class_4410;method_32488(Lnet/minecraft/class_4890;)Vnamed onSelectWorldTemplateLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;onSelectWorldTemplate(Lnet/minecraft/client/realms/dto/WorldTemplate;)V
-
onResetNormalWorld
- Mappings:
Namespace Name Mixin selector official aLdos;a(Ldpn;)Vintermediary method_32489Lnet/minecraft/class_4410;method_32489(Lnet/minecraft/class_4413;)Vnamed onResetNormalWorldLnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;onResetNormalWorld(Lnet/minecraft/client/realms/gui/screen/ResetWorldInfo;)V
-
method_32493
- Mappings:
Namespace Name Mixin selector official bLdos;b(Ljava/lang/Runnable;)Vintermediary method_32493Lnet/minecraft/class_4410;method_32493(Ljava/lang/Runnable;)Vnamed method_32493Lnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;method_32493(Ljava/lang/Runnable;)V
-