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,TickableElement
@Environment(CLIENT) public class RealmsSelectWorldTemplateScreen extends RealmsScreen
- Mappings:
Namespace Name official domintermediary net/minecraft/class_4419named net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classRealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList(package private) classRealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry -
Field Summary
Fields Modifier and Type Field Description private intclicksprivate StringcurrentLinkprivate booleandisplayWarningprivate Consumer<WorldTemplate>field_27941private booleanhoverWarningprivate static TextINFO_TOOLTIPprivate static IdentifierLINK_ICONSprivate static LoggerLOGGERprivate List<TextRenderingUtils.Line>noTemplatesMessageprivate ButtonWidgetpublisherButtonprivate ButtonWidgetselectButtonprivate intselectedTemplateprivate static IdentifierSLOT_FRAMEprivate RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListtemplateListprivate Texttitleprivate TexttoolTipprivate static IdentifierTRAILER_ICONSprivate static TextTRAILER_TOOLTIPprivate ButtonWidgettrailerButtonprivate Text[]warningprivate StringwarningURLprivate RealmsServer.WorldTypeworldTypeFields 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 RealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> consumer, RealmsServer.WorldType worldType)RealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> consumer, RealmsServer.WorldType worldType, WorldTemplatePaginatedList list) -
Method Summary
Modifier and Type Method Description voidinit()Called when a screen should be initialized.private voidmethod_21414(MatrixStack matrixStack, int int2, int int3, List<TextRenderingUtils.Line> list)private com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,String>method_21416(WorldTemplatePaginatedList worldTemplatePaginatedList, RealmsClient realmsClient)private WorldTemplatemethod_21434()private booleanmethod_25247()booleanmouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured.voidonClose()private voidonPublish()private voidonTrailer()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)protected voidrenderMousehoverTooltip(MatrixStack matrices, Text text, int int2, int int3)private voidselectTemplate()private voidsetPagination(WorldTemplatePaginatedList worldTemplatePaginatedList)voidsetTitle(Text title)voidsetWarning(Text[] warning)private booleanshouldPublisherBeVisible()private booleanshouldSelectButtonBeActive()private booleanshouldTrailerBeVisible()voidtick()private voidupdateButtonStates()Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, rowMethods 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, keyPressed, removed, 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, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdom;a:Lorg/apache/logging/log4j/Logger;intermediary field_20069Lnet/minecraft/class_4419;field_20069:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
LINK_ICONS
- Mappings:
Namespace Name Mixin selector official bLdom;b:Lwb;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 cLdom;c:Lwb;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 pLdom;p:Lwb;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 qLdom;q:Loi;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 rLdom;r:Loi;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;
-
field_27941
- Mappings:
Namespace Name Mixin selector official sLdom;s:Ljava/util/function/Consumer;intermediary field_27941Lnet/minecraft/class_4419;field_27941:Ljava/util/function/Consumer;named field_27941Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;field_27941:Ljava/util/function/Consumer;
-
templateList
- Mappings:
Namespace Name Mixin selector official tLdom;t:Ldom$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
private int selectedTemplate- Mappings:
Namespace Name Mixin selector official uLdom;u:Iintermediary field_20072Lnet/minecraft/class_4419;field_20072:Inamed selectedTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectedTemplate:I
-
title
- Mappings:
Namespace Name Mixin selector official vLdom;v:Loi;intermediary field_20073Lnet/minecraft/class_4419;field_20073:Lnet/minecraft/class_2561;named titleLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;title:Lnet/minecraft/text/Text;
-
selectButton
- Mappings:
Namespace Name Mixin selector official wLdom;w:Ldru;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 xLdom;x:Ldru;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 yLdom;y:Ldru;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 zLdom;z:Loi;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 ALdom;A: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 BLdom;B:Ldmv$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
private int clicks- Mappings:
Namespace Name Mixin selector official CLdom;C: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 DLdom;D:[Loi;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 ELdom;E: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
private boolean displayWarning- Mappings:
Namespace Name Mixin selector official FLdom;F: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 GLdom;G: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 HLdom;H: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(Consumer<WorldTemplate> consumer, RealmsServer.WorldType worldType) -
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> consumer, RealmsServer.WorldType worldType, @Nullable WorldTemplatePaginatedList list)- Mappings:
Namespace Name Mixin selector official <init>Ldom;<init>(Ljava/util/function/Consumer;Ldmv$c;Ldnk;)Vintermediary <init>Lnet/minecraft/class_4419;<init>(Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;Lnet/minecraft/class_4891;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;<init>(Ljava/util/function/Consumer;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;)V
-
-
Method Details
-
setTitle
- Mappings:
Namespace Name Mixin selector official aLdom;a(Loi;)Vintermediary method_21423Lnet/minecraft/class_4419;method_21423(Lnet/minecraft/class_2561;)Vnamed setTitleLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;setTitle(Lnet/minecraft/text/Text;)V
-
setWarning
- Mappings:
Namespace Name Mixin selector official aLdom;a([Loi;)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:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdst;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.
-
updateButtonStates
private void updateButtonStates()- Mappings:
Namespace Name Mixin selector official kLdom;k()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 lLdom;l()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 mLdom;m()Zintermediary method_21432Lnet/minecraft/class_4419;method_21432()Znamed shouldPublisherBeVisibleLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldPublisherBeVisible()Z
-
method_21434
- Mappings:
Namespace Name Mixin selector official nLdom;n()Ldnj;intermediary method_21434Lnet/minecraft/class_4419;method_21434()Lnet/minecraft/class_4890;named method_21434Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;method_21434()Lnet/minecraft/client/realms/dto/WorldTemplate;
-
shouldTrailerBeVisible
private boolean shouldTrailerBeVisible()- Mappings:
Namespace Name Mixin selector official oLdom;o()Zintermediary method_21436Lnet/minecraft/class_4419;method_21436()Znamed shouldTrailerBeVisibleLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldTrailerBeVisible()Z
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classRealmsScreen- Mappings:
Namespace Name Mixin selector official dLdsn;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
onClose
public void onClose() -
selectTemplate
private void selectTemplate()- Mappings:
Namespace Name Mixin selector official pLdom;p()Vintermediary method_21440Lnet/minecraft/class_4419;method_21440()Vnamed selectTemplateLnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectTemplate()V
-
method_25247
private boolean method_25247()- Mappings:
Namespace Name Mixin selector official qLdom;q()Zintermediary method_25247Lnet/minecraft/class_4419;method_25247()Znamed method_25247Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;method_25247()Z
-
onTrailer
private void onTrailer()- Mappings:
Namespace Name Mixin selector official rLdom;r()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 tLdom;t()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 aLdom;a(Ldnk;)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
-
method_21416
private com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,String> method_21416(WorldTemplatePaginatedList worldTemplatePaginatedList, RealmsClient realmsClient)- Mappings:
Namespace Name Mixin selector official aLdom;a(Ldnk;Ldmg;)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 method_21416Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;method_21416(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 aLdsq;a(Ldlr;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
-
method_21414
private void method_21414(MatrixStack matrixStack, int int2, int int3, List<TextRenderingUtils.Line> list)- Mappings:
Namespace Name Mixin selector official aLdom;a(Ldlr;IILjava/util/List;)Vintermediary method_21414Lnet/minecraft/class_4419;method_21414(Lnet/minecraft/class_4587;IILjava/util/List;)Vnamed method_21414Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;method_21414(Lnet/minecraft/client/util/math/MatrixStack;IILjava/util/List;)V
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack matrices, @Nullable Text text, int int2, int int3)- Mappings:
Namespace Name Mixin selector official aLdom;a(Ldlr;Loi;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
-