Class RealmsSelectWorldTemplateScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsSelectWorldTemplateScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name official eowintermediary net/minecraft/class_4419named net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Consumer<WorldTemplate>private static final intprivate static final intprivate final ThreePartsLayoutWidget(package private) static final Logger(package private) @Nullable List<TextRenderingUtils.Line>private static final Textprivate ButtonWidgetprivate static final Textprivate ButtonWidget(package private) @Nullable WorldTemplate(package private) static final Identifier(package private) RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListprivate static final Textprivate ButtonWidgetprivate final RealmsServer.WorldTypeFields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
field_33036, field_33038, field_33039, field_33040, field_33041, field_33042, field_33055, field_33057, field_33061, field_33062, field_33063, field_39676, MAX_FILE_SIZEFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionRealmsSelectWorldTemplateScreen(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType) RealmsSelectWorldTemplateScreen(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, @Nullable WorldTemplatePaginatedList templateList) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,Exception> fetchWorldTemplates(WorldTemplatePaginatedList templateList, RealmsClient realms) (package private) intvoidinit()Called when a screen should be initialized.protected voidprivate voidprivate voidvoidrender(DrawContext context, int mouseX, int mouseY, float delta) private voidrenderMessages(DrawContext context, int x, int y, List<TextRenderingUtils.Line> messages) private voidprivate voidsetPagination(WorldTemplatePaginatedList templateList) voidsetWarning(Text[] warning) (package private) voidMethods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
addLabel, narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, method_53870, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods 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.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLeow;a:Lorg/slf4j/Logger;intermediary field_20069Lnet/minecraft/class_4419;field_20069:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;LOGGER:Lorg/slf4j/Logger;
-
SLOT_FRAME_TEXTURE
- Mappings:
Namespace Name Mixin selector official bLeow;b:Laex;intermediary field_22721Lnet/minecraft/class_4419;field_22721:Lnet/minecraft/class_2960;named SLOT_FRAME_TEXTURELnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;SLOT_FRAME_TEXTURE:Lnet/minecraft/util/Identifier;
-
SELECT_TEXT
- Mappings:
Namespace Name Mixin selector official cLeow;c:Ltm;intermediary field_45977Lnet/minecraft/class_4419;field_45977:Lnet/minecraft/class_2561;named SELECT_TEXTLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;SELECT_TEXT:Lnet/minecraft/text/Text;
-
TRAILER_TEXT
- Mappings:
Namespace Name Mixin selector official yLeow;y:Ltm;intermediary field_45978Lnet/minecraft/class_4419;field_45978:Lnet/minecraft/class_2561;named TRAILER_TEXTLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_TEXT:Lnet/minecraft/text/Text;
-
PUBLISHER_TEXT
- Mappings:
Namespace Name Mixin selector official zLeow;z:Ltm;intermediary field_45979Lnet/minecraft/class_4419;field_45979:Lnet/minecraft/class_2561;named PUBLISHER_TEXTLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;PUBLISHER_TEXT:Lnet/minecraft/text/Text;
-
field_45974
private static final int field_45974- See Also:
- Mappings:
Namespace Name Mixin selector official ALeow;A:Iintermediary field_45974Lnet/minecraft/class_4419;field_45974:Inamed field_45974Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;field_45974:I
-
field_45975
private static final int field_45975- See Also:
- Mappings:
Namespace Name Mixin selector official BLeow;B:Iintermediary field_45975Lnet/minecraft/class_4419;field_45975:Inamed field_45975Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;field_45975:I
-
layout
- Mappings:
Namespace Name Mixin selector official CLeow;C:Levz;intermediary field_45976Lnet/minecraft/class_4419;field_45976:Lnet/minecraft/class_8132;named layoutLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
-
callback
- Mappings:
Namespace Name Mixin selector official DLeow;D:Ljava/util/function/Consumer;intermediary field_27941Lnet/minecraft/class_4419;field_27941:Ljava/util/function/Consumer;named callbackLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;callback:Ljava/util/function/Consumer;
-
templateList
- Mappings:
Namespace Name Mixin selector official ELeow;E:Leow$b;intermediary field_20071Lnet/minecraft/class_4419;field_20071:Lnet/minecraft/class_4419$class_4420;named templateListLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;templateList:Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen$WorldTemplateObjectSelectionList;
-
worldType
- Mappings:
Namespace Name Mixin selector official FLeow;F:Lemw$c;intermediary field_20079Lnet/minecraft/class_4419;field_20079:Lnet/minecraft/class_4877$class_4321;named worldTypeLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;worldType:Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;
-
selectButton
- Mappings:
Namespace Name Mixin selector official GLeow;G:Lesq;intermediary field_20074Lnet/minecraft/class_4419;field_20074:Lnet/minecraft/class_4185;named selectButtonLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
trailerButton
- Mappings:
Namespace Name Mixin selector official HLeow;H:Lesq;intermediary field_20075Lnet/minecraft/class_4419;field_20075:Lnet/minecraft/class_4185;named trailerButtonLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;trailerButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
publisherButton
- Mappings:
Namespace Name Mixin selector official ILeow;I:Lesq;intermediary field_20076Lnet/minecraft/class_4419;field_20076:Lnet/minecraft/class_4185;named publisherButtonLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;publisherButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
selectedTemplate
- Mappings:
Namespace Name Mixin selector official JLeow;J:Lenn;intermediary field_20072Lnet/minecraft/class_4419;field_20072:Lnet/minecraft/class_4890;named selectedTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectedTemplate:Lnet/minecraft/client/realms/dto/WorldTemplate;
-
currentLink
- Mappings:
Namespace Name Mixin selector official KLeow;K:Ljava/lang/String;intermediary field_20078Lnet/minecraft/class_4419;field_20078:Ljava/lang/String;named currentLinkLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;currentLink:Ljava/lang/String;
-
warning
- Mappings:
Namespace Name Mixin selector official LLeow;L:[Ltm;intermediary field_20081Lnet/minecraft/class_4419;field_20081:[Lnet/minecraft/class_2561;named warningLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;warning:[Lnet/minecraft/text/Text;
-
noTemplatesMessage
- Mappings:
Namespace Name Mixin selector official MLeow;M:Ljava/util/List;intermediary field_20085Lnet/minecraft/class_4419;field_20085:Ljava/util/List;named noTemplatesMessageLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;noTemplatesMessage:Ljava/util/List;
-
-
Constructor Details
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType) - Mappings:
Namespace Name Mixin selector official <init>Leow;<init>(Ltm;Ljava/util/function/Consumer;Lemw$c;)Vintermediary <init>Lnet/minecraft/class_4419;<init>(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;<init>(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;)V
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, @Nullable @Nullable WorldTemplatePaginatedList templateList) - Mappings:
Namespace Name Mixin selector official <init>Leow;<init>(Ltm;Ljava/util/function/Consumer;Lemw$c;Leno;)Vintermediary <init>Lnet/minecraft/class_4419;<init>(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;Lnet/minecraft/class_4891;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;<init>(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;)V
-
-
Method Details
-
setWarning
- Mappings:
Namespace Name Mixin selector official aLeow;a([Ltm;)Vintermediary method_21429Lnet/minecraft/class_4419;method_21429([Lnet/minecraft/class_2561;)Vnamed setWarningLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;setWarning([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.
This should call
Screen.setInitialFocus(net.minecraft.client.gui.Element)to set the element that is initially focused. -
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector official gLeyk;g()Ltm;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-
updateButtonStates
void updateButtonStates()- Mappings:
Namespace Name Mixin selector official DLeow;D()Vintermediary method_21425Lnet/minecraft/class_4419;method_21425()Vnamed updateButtonStatesLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;updateButtonStates()V
-
close
public void close() -
selectTemplate
private void selectTemplate()- Mappings:
Namespace Name Mixin selector official ELeow;E()Vintermediary method_21440Lnet/minecraft/class_4419;method_21440()Vnamed selectTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectTemplate()V
-
onTrailer
private void onTrailer()- Mappings:
Namespace Name Mixin selector official FLeow;F()Vintermediary method_21442Lnet/minecraft/class_4419;method_21442()Vnamed onTrailerLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;onTrailer()V
-
onPublish
private void onPublish()- Mappings:
Namespace Name Mixin selector official GLeow;G()Vintermediary method_21444Lnet/minecraft/class_4419;method_21444()Vnamed onPublishLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;onPublish()V
-
setPagination
- Mappings:
Namespace Name Mixin selector official aLeow;a(Leno;)Vintermediary method_21415Lnet/minecraft/class_4419;method_21415(Lnet/minecraft/class_4891;)Vnamed setPaginationLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;setPagination(Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;)V
-
fetchWorldTemplates
com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,Exception> fetchWorldTemplates(WorldTemplatePaginatedList templateList, RealmsClient realms) - Mappings:
Namespace Name Mixin selector official aLeow;a(Leno;Lemf;)Lcom/mojang/datafixers/util/Either;intermediary method_21416Lnet/minecraft/class_4419;method_21416(Lnet/minecraft/class_4891;Lnet/minecraft/class_4341;)Lcom/mojang/datafixers/util/Either;named fetchWorldTemplatesLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;fetchWorldTemplates(Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;Lnet/minecraft/client/realms/RealmsClient;)Lcom/mojang/datafixers/util/Either;
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLets;a(Lesf;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
renderMessages
private void renderMessages(DrawContext context, int x, int y, List<TextRenderingUtils.Line> messages) - Mappings:
Namespace Name Mixin selector official aLeow;a(Lesf;IILjava/util/List;)Vintermediary method_21414Lnet/minecraft/class_4419;method_21414(Lnet/minecraft/class_332;IILjava/util/List;)Vnamed renderMessagesLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;renderMessages(Lnet/minecraft/client/gui/DrawContext;IILjava/util/List;)V
-
getTemplateListTop
int getTemplateListTop()- Mappings:
Namespace Name Mixin selector official HLeow;H()Iintermediary method_53514Lnet/minecraft/class_4419;method_53514()Inamed getTemplateListTopLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;getTemplateListTop()I
-