Class RealmsSelectWorldTemplateScreen
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.RealmsSelectWorldTemplateScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement
- Mappings:
Namespace Name official edtintermediary 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 TypeFieldDescriptionprivate final Consumer<WorldTemplate>(package private) int(package private) booleanprivate boolean(package private) static final Text(package private) static final Identifier(package private) static final org.slf4j.Logger(package private) @Nullable List<TextRenderingUtils.Line>private ButtonWidgetprivate ButtonWidget(package private) int(package private) static final Identifier(package private) RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList(package private) static final Identifier(package private) static final Textprivate ButtonWidgetprivate Stringprivate final RealmsServer.WorldTypeFields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
ADVENTURE_MAPS_IN_1_9_URL, field_33036, field_33037, field_33038, field_33039, field_33040, field_33041, field_33042, field_33043, field_33055, field_33056, field_33057, field_33060, field_33061, field_33062, field_33063, field_33064, field_39676, MAX_FILE_SIZE, RED, WHITEFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields 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,String> fetchWorldTemplates(WorldTemplatePaginatedList templateList, RealmsClient realms) private WorldTemplatevoidinit()Called when a screen should be initialized.private booleanbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.private voidprivate voidvoidrender(MatrixStack matrices, int mouseX, int mouseY, float delta) private voidrenderMessages(MatrixStack matrices, int x, int y, List<TextRenderingUtils.Line> messages) protected voidrenderMousehoverTooltip(MatrixStack matrices, @Nullable Text tooltip, int mouseX, int mouseY) (package private) voidprivate voidsetPagination(WorldTemplatePaginatedList templateList) voidsetWarning(Text[] warning) private booleanprivate booleanprivate booleanvoidtick()(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, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, shouldPause, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, 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, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official aLedt;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;
-
LINK_ICONS
- Mappings:
Namespace Name Mixin selector official bLedt;b:Labb;intermediary field_22719Lnet/minecraft/class_4419;field_22719:Lnet/minecraft/class_2960;named LINK_ICONSLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;LINK_ICONS:Lnet/minecraft/util/Identifier;
-
TRAILER_ICONS
- Mappings:
Namespace Name Mixin selector official cLedt;c:Labb;intermediary field_22720Lnet/minecraft/class_4419;field_22720:Lnet/minecraft/class_2960;named TRAILER_ICONSLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_ICONS:Lnet/minecraft/util/Identifier;
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official ILedt;I:Labb;intermediary field_22721Lnet/minecraft/class_4419;field_22721:Lnet/minecraft/class_2960;named SLOT_FRAMELnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;SLOT_FRAME:Lnet/minecraft/util/Identifier;
-
INFO_TOOLTIP
- Mappings:
Namespace Name Mixin selector official JLedt;J:Lrq;intermediary field_26512Lnet/minecraft/class_4419;field_26512:Lnet/minecraft/class_2561;named INFO_TOOLTIPLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;INFO_TOOLTIP:Lnet/minecraft/text/Text;
-
TRAILER_TOOLTIP
- Mappings:
Namespace Name Mixin selector official KLedt;K:Lrq;intermediary field_26513Lnet/minecraft/class_4419;field_26513:Lnet/minecraft/class_2561;named TRAILER_TOOLTIPLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_TOOLTIP:Lnet/minecraft/text/Text;
-
callback
- Mappings:
Namespace Name Mixin selector official LLedt;L: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 MLedt;M:Ledt$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;
-
selectedTemplate
int selectedTemplate- Mappings:
Namespace Name Mixin selector official NLedt;N:Iintermediary field_20072Lnet/minecraft/class_4419;field_20072:Inamed selectedTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectedTemplate:I
-
selectButton
- Mappings:
Namespace Name Mixin selector official OLedt;O:Lehp;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 PLedt;P:Lehp;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 QLedt;Q:Lehp;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;
-
tooltip
- Mappings:
Namespace Name Mixin selector official RLedt;R:Lrq;intermediary field_20077Lnet/minecraft/class_4419;field_20077:Lnet/minecraft/class_2561;named tooltipLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;tooltip:Lnet/minecraft/text/Text;
-
currentLink
- Mappings:
Namespace Name Mixin selector official SLedt;S: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;
-
worldType
- Mappings:
Namespace Name Mixin selector official TLedt;T:Lebv$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;
-
clicks
int clicks- Mappings:
Namespace Name Mixin selector official ULedt;U:Iintermediary field_20080Lnet/minecraft/class_4419;field_20080:Inamed clicksLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;clicks:I
-
warning
- Mappings:
Namespace Name Mixin selector official VLedt;V:[Lrq;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;
-
warningURL
- Mappings:
Namespace Name Mixin selector official WLedt;W:Ljava/lang/String;intermediary field_20082Lnet/minecraft/class_4419;field_20082:Ljava/lang/String;named warningURLLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;warningURL:Ljava/lang/String;
-
displayWarning
boolean displayWarning- Mappings:
Namespace Name Mixin selector official XLedt;X:Zintermediary field_20083Lnet/minecraft/class_4419;field_20083:Znamed displayWarningLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;displayWarning:Z
-
hoverWarning
private boolean hoverWarning- Mappings:
Namespace Name Mixin selector official YLedt;Y:Zintermediary field_20084Lnet/minecraft/class_4419;field_20084:Znamed hoverWarningLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;hoverWarning:Z
-
noTemplatesMessage
- Mappings:
Namespace Name Mixin selector official ZLedt;Z: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>Ledt;<init>(Lrq;Ljava/util/function/Consumer;Lebv$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>Ledt;<init>(Lrq;Ljava/util/function/Consumer;Lebv$c;Lecm;)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 aLedt;a([Lrq;)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
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLeir;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector official ae_Lelm;ae_()Lrq;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 gLedt;g()Vintermediary method_21425Lnet/minecraft/class_4419;method_21425()Vnamed updateButtonStatesLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;updateButtonStates()V
-
shouldSelectButtonBeActive
private boolean shouldSelectButtonBeActive()- Mappings:
Namespace Name Mixin selector official kLedt;k()Zintermediary method_21430Lnet/minecraft/class_4419;method_21430()Znamed shouldSelectButtonBeActiveLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldSelectButtonBeActive()Z
-
shouldPublisherBeVisible
private boolean shouldPublisherBeVisible()- Mappings:
Namespace Name Mixin selector official zLedt;z()Zintermediary method_21432Lnet/minecraft/class_4419;method_21432()Znamed shouldPublisherBeVisibleLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldPublisherBeVisible()Z
-
getSelectedTemplate
- Mappings:
Namespace Name Mixin selector official ALedt;A()Lecl;intermediary method_21434Lnet/minecraft/class_4419;method_21434()Lnet/minecraft/class_4890;named getSelectedTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;getSelectedTemplate()Lnet/minecraft/client/realms/dto/WorldTemplate;
-
shouldTrailerBeVisible
private boolean shouldTrailerBeVisible()- Mappings:
Namespace Name Mixin selector official BLedt;B()Zintermediary method_21436Lnet/minecraft/class_4419;method_21436()Znamed shouldTrailerBeVisibleLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldTrailerBeVisible()Z
-
tick
public void tick() -
close
public void close() -
selectTemplate
void selectTemplate()- Mappings:
Namespace Name Mixin selector official CLedt;C()Vintermediary method_21440Lnet/minecraft/class_4419;method_21440()Vnamed selectTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectTemplate()V
-
isSelectionValid
private boolean isSelectionValid()- Mappings:
Namespace Name Mixin selector official DLedt;D()Zintermediary method_25247Lnet/minecraft/class_4419;method_25247()Znamed isSelectionValidLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;isSelectionValid()Z
-
onTrailer
private void onTrailer()- Mappings:
Namespace Name Mixin selector official ELedt;E()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 FLedt;F()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 aLedt;a(Lecm;)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,String> fetchWorldTemplates(WorldTemplatePaginatedList templateList, RealmsClient realms) - Mappings:
Namespace Name Mixin selector official aLedt;a(Lecm;Lebf;)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 aLeio;a(Leaq;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
-
renderMessages
private void renderMessages(MatrixStack matrices, int x, int y, List<TextRenderingUtils.Line> messages) - Mappings:
Namespace Name Mixin selector official aLedt;a(Leaq;IILjava/util/List;)Vintermediary method_21414Lnet/minecraft/class_4419;method_21414(Lnet/minecraft/class_4587;IILjava/util/List;)Vnamed renderMessagesLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;renderMessages(Lnet/minecraft/client/util/math/MatrixStack;IILjava/util/List;)V
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack matrices, @Nullable @Nullable Text tooltip, int mouseX, int mouseY) - Mappings:
Namespace Name Mixin selector official aLedt;a(Leaq;Lrq;II)Vintermediary method_21424Lnet/minecraft/class_4419;method_21424(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)Vnamed renderMousehoverTooltipLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;renderMousehoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V
-