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
- Mappings:
Namespace Name official dsk
intermediary net/minecraft/class_4419
named net/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Consumer<WorldTemplate>
private int
private String
private boolean
private boolean
private static Text
private static Identifier
private static Logger
private @Nullable List<TextRenderingUtils.Line>
private ButtonWidget
private ButtonWidget
private int
private static Identifier
private Text
private static Identifier
private static Text
private ButtonWidget
private String
private RealmsServer.WorldType
Fields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
field_33036, field_33037, field_33038, field_33039, field_33040, field_33041, field_33042, field_33043, field_33044, field_33045, field_33046, field_33047, field_33048, field_33049, field_33050, field_33051, field_33052, field_33053, field_33054, field_33055, field_33056, field_33057, field_33058, field_33059, field_33060, field_33061, field_33062, field_33063, field_33064, field_33065
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
ConstructorsConstructorDescriptionRealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType)
RealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, @Nullable WorldTemplatePaginatedList list)
-
Method Summary
Modifier and TypeMethodDescriptionprivate WorldTemplate
void
init()
Called when a screen should be initialized.private boolean
private void
method_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)
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.void
onClose()
private void
private void
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
protected void
renderMousehoverTooltip(MatrixStack matrices, @Nullable Text text, int int2, int int3)
private void
private void
setPagination(WorldTemplatePaginatedList worldTemplatePaginatedList)
void
void
setWarning(Text[] warning)
private boolean
private boolean
private boolean
void
tick()
private void
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row
Methods 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, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods 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, method_35719, method_35720, setZOffset
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.Element
mouseMoved
Methods 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 a
Ldsk;a:Lorg/apache/logging/log4j/Logger;
intermediary field_20069
Lnet/minecraft/class_4419;field_20069:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
LINK_ICONS
- Mappings:
Namespace Name Mixin selector official b
Ldsk;b:Lwp;
intermediary field_22719
Lnet/minecraft/class_4419;field_22719:Lnet/minecraft/class_2960;
named LINK_ICONS
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;LINK_ICONS:Lnet/minecraft/util/Identifier;
-
TRAILER_ICONS
- Mappings:
Namespace Name Mixin selector official c
Ldsk;c:Lwp;
intermediary field_22720
Lnet/minecraft/class_4419;field_22720:Lnet/minecraft/class_2960;
named TRAILER_ICONS
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_ICONS:Lnet/minecraft/util/Identifier;
-
SLOT_FRAME
- Mappings:
Namespace Name Mixin selector official T
Ldsk;T:Lwp;
intermediary field_22721
Lnet/minecraft/class_4419;field_22721:Lnet/minecraft/class_2960;
named SLOT_FRAME
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;SLOT_FRAME:Lnet/minecraft/util/Identifier;
-
INFO_TOOLTIP
- Mappings:
Namespace Name Mixin selector official U
Ldsk;U:Lon;
intermediary field_26512
Lnet/minecraft/class_4419;field_26512:Lnet/minecraft/class_2561;
named INFO_TOOLTIP
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;INFO_TOOLTIP:Lnet/minecraft/text/Text;
-
TRAILER_TOOLTIP
- Mappings:
Namespace Name Mixin selector official V
Ldsk;V:Lon;
intermediary field_26513
Lnet/minecraft/class_4419;field_26513:Lnet/minecraft/class_2561;
named TRAILER_TOOLTIP
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;TRAILER_TOOLTIP:Lnet/minecraft/text/Text;
-
callback
- Mappings:
Namespace Name Mixin selector official W
Ldsk;W:Ljava/util/function/Consumer;
intermediary field_27941
Lnet/minecraft/class_4419;field_27941:Ljava/util/function/Consumer;
named callback
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;callback:Ljava/util/function/Consumer;
-
templateList
- Mappings:
Namespace Name Mixin selector official X
Ldsk;X:Ldsk$b;
intermediary field_20071
Lnet/minecraft/class_4419;field_20071:Lnet/minecraft/class_4419$class_4420;
named templateList
Lnet/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 Y
Ldsk;Y:I
intermediary field_20072
Lnet/minecraft/class_4419;field_20072:I
named selectedTemplate
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectedTemplate:I
-
title
- Mappings:
Namespace Name Mixin selector official Z
Ldsk;Z:Lon;
intermediary field_20073
Lnet/minecraft/class_4419;field_20073:Lnet/minecraft/class_2561;
named title
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;title:Lnet/minecraft/text/Text;
-
selectButton
- Mappings:
Namespace Name Mixin selector official aa
Ldsk;aa:Ldvx;
intermediary field_20074
Lnet/minecraft/class_4419;field_20074:Lnet/minecraft/class_4185;
named selectButton
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
trailerButton
- Mappings:
Namespace Name Mixin selector official ab
Ldsk;ab:Ldvx;
intermediary field_20075
Lnet/minecraft/class_4419;field_20075:Lnet/minecraft/class_4185;
named trailerButton
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;trailerButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
publisherButton
- Mappings:
Namespace Name Mixin selector official ac
Ldsk;ac:Ldvx;
intermediary field_20076
Lnet/minecraft/class_4419;field_20076:Lnet/minecraft/class_4185;
named publisherButton
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;publisherButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
toolTip
- Mappings:
Namespace Name Mixin selector official ad
Ldsk;ad:Lon;
intermediary field_20077
Lnet/minecraft/class_4419;field_20077:Lnet/minecraft/class_2561;
named toolTip
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;toolTip:Lnet/minecraft/text/Text;
-
currentLink
- Mappings:
Namespace Name Mixin selector official ae
Ldsk;ae:Ljava/lang/String;
intermediary field_20078
Lnet/minecraft/class_4419;field_20078:Ljava/lang/String;
named currentLink
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;currentLink:Ljava/lang/String;
-
worldType
- Mappings:
Namespace Name Mixin selector official af
Ldsk;af:Ldqo$c;
intermediary field_20079
Lnet/minecraft/class_4419;field_20079:Lnet/minecraft/class_4877$class_4321;
named worldType
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;worldType:Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;
-
clicks
private int clicks- Mappings:
Namespace Name Mixin selector official ag
Ldsk;ag:I
intermediary field_20080
Lnet/minecraft/class_4419;field_20080:I
named clicks
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;clicks:I
-
warning
- Mappings:
Namespace Name Mixin selector official ah
Ldsk;ah:[Lon;
intermediary field_20081
Lnet/minecraft/class_4419;field_20081:[Lnet/minecraft/class_2561;
named warning
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;warning:[Lnet/minecraft/text/Text;
-
warningURL
- Mappings:
Namespace Name Mixin selector official ai
Ldsk;ai:Ljava/lang/String;
intermediary field_20082
Lnet/minecraft/class_4419;field_20082:Ljava/lang/String;
named warningURL
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;warningURL:Ljava/lang/String;
-
displayWarning
private boolean displayWarning- Mappings:
Namespace Name Mixin selector official aj
Ldsk;aj:Z
intermediary field_20083
Lnet/minecraft/class_4419;field_20083:Z
named displayWarning
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;displayWarning:Z
-
hoverWarning
private boolean hoverWarning- Mappings:
Namespace Name Mixin selector official ak
Ldsk;ak:Z
intermediary field_20084
Lnet/minecraft/class_4419;field_20084:Z
named hoverWarning
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;hoverWarning:Z
-
noTemplatesMessage
- Mappings:
Namespace Name Mixin selector official al
Ldsk;al:Ljava/util/List;
intermediary field_20085
Lnet/minecraft/class_4419;field_20085:Ljava/util/List;
named noTemplatesMessage
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;noTemplatesMessage:Ljava/util/List;
-
-
Constructor Details
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType)- Mappings:
Namespace Name Mixin selector official <init>
Ldsk;<init>(Ljava/util/function/Consumer;Ldqo$c;)V
intermediary <init>
Lnet/minecraft/class_4419;<init>(Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;)V
named <init>
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;<init>(Ljava/util/function/Consumer;Lnet/minecraft/client/realms/dto/RealmsServer$WorldType;)V
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, @Nullable @Nullable WorldTemplatePaginatedList list)- Mappings:
Namespace Name Mixin selector official <init>
Ldsk;<init>(Ljava/util/function/Consumer;Ldqo$c;Ldrf;)V
intermediary <init>
Lnet/minecraft/class_4419;<init>(Ljava/util/function/Consumer;Lnet/minecraft/class_4877$class_4321;Lnet/minecraft/class_4891;)V
named <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 a
Ldsk;a(Lon;)V
intermediary method_21423
Lnet/minecraft/class_4419;method_21423(Lnet/minecraft/class_2561;)V
named setTitle
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;setTitle(Lnet/minecraft/text/Text;)V
-
setWarning
- Mappings:
Namespace Name Mixin selector official a
Ldsk;a([Lon;)V
intermediary method_21429
Lnet/minecraft/class_4419;method_21429([Lnet/minecraft/class_2561;)V
named setWarning
Lnet/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 inGLFW
class.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to 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 a
Ldww;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/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 k
Ldsk;k()V
intermediary method_21425
Lnet/minecraft/class_4419;method_21425()V
named updateButtonStates
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;updateButtonStates()V
-
shouldSelectButtonBeActive
private boolean shouldSelectButtonBeActive()- Mappings:
Namespace Name Mixin selector official l
Ldsk;l()Z
intermediary method_21430
Lnet/minecraft/class_4419;method_21430()Z
named shouldSelectButtonBeActive
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldSelectButtonBeActive()Z
-
shouldPublisherBeVisible
private boolean shouldPublisherBeVisible()- Mappings:
Namespace Name Mixin selector official m
Ldsk;m()Z
intermediary method_21432
Lnet/minecraft/class_4419;method_21432()Z
named shouldPublisherBeVisible
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldPublisherBeVisible()Z
-
getSelectedTemplate
- Mappings:
Namespace Name Mixin selector official n
Ldsk;n()Ldre;
intermediary method_21434
Lnet/minecraft/class_4419;method_21434()Lnet/minecraft/class_4890;
named getSelectedTemplate
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;getSelectedTemplate()Lnet/minecraft/client/realms/dto/WorldTemplate;
-
shouldTrailerBeVisible
private boolean shouldTrailerBeVisible()- Mappings:
Namespace Name Mixin selector official o
Ldsk;o()Z
intermediary method_21436
Lnet/minecraft/class_4419;method_21436()Z
named shouldTrailerBeVisible
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;shouldTrailerBeVisible()Z
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classRealmsScreen
- Mappings:
Namespace Name Mixin selector official d
Ldwq;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
onClose
public void onClose() -
selectTemplate
private void selectTemplate()- Mappings:
Namespace Name Mixin selector official p
Ldsk;p()V
intermediary method_21440
Lnet/minecraft/class_4419;method_21440()V
named selectTemplate
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;selectTemplate()V
-
isSelectionValid
private boolean isSelectionValid()- Mappings:
Namespace Name Mixin selector official q
Ldsk;q()Z
intermediary method_25247
Lnet/minecraft/class_4419;method_25247()Z
named isSelectionValid
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;isSelectionValid()Z
-
onTrailer
private void onTrailer()- Mappings:
Namespace Name Mixin selector official r
Ldsk;r()V
intermediary method_21442
Lnet/minecraft/class_4419;method_21442()V
named onTrailer
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;onTrailer()V
-
onPublish
private void onPublish()- Mappings:
Namespace Name Mixin selector official t
Ldsk;t()V
intermediary method_21444
Lnet/minecraft/class_4419;method_21444()V
named onPublish
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;onPublish()V
-
setPagination
- Mappings:
Namespace Name Mixin selector official a
Ldsk;a(Ldrf;)V
intermediary method_21415
Lnet/minecraft/class_4419;method_21415(Lnet/minecraft/class_4891;)V
named setPagination
Lnet/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 a
Ldsk;a(Ldrf;Ldpy;)Lcom/mojang/datafixers/util/Either;
intermediary method_21416
Lnet/minecraft/class_4419;method_21416(Lnet/minecraft/class_4891;Lnet/minecraft/class_4341;)Lcom/mojang/datafixers/util/Either;
named method_21416
Lnet/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:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldwt;a(Ldpj;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/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 a
Ldsk;a(Ldpj;IILjava/util/List;)V
intermediary method_21414
Lnet/minecraft/class_4419;method_21414(Lnet/minecraft/class_4587;IILjava/util/List;)V
named method_21414
Lnet/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 @Nullable Text text, int int2, int int3)- Mappings:
Namespace Name Mixin selector official a
Ldsk;a(Ldpj;Lon;II)V
intermediary method_21424
Lnet/minecraft/class_4419;method_21424(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)V
named renderMousehoverTooltip
Lnet/minecraft/client/realms/gui/screen/RealmsSelectWorldTemplateScreen;renderMousehoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V
-