net.minecraft.client.realms.gui.screen

public class RealmsSelectWorldTemplateScreen

extends RealmsScreen

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen
com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen
net.minecraft.class_4419
net.minecraft.client.realms.gui.screen.RealmsSelectWorldTemplateScreen

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_20069
LOGGER
private static final Identifier
SLOT_FRAME_SPRITE
SLOT_FRAME_SPRITE
field_22721
SLOT_FRAME_TEXTURE
private static final Text
SELECT_BUTTON_NAME
SELECT_BUTTON_NAME
field_45977
SELECT_TEXT
private static final Text
TRAILER_BUTTON_NAME
TRAILER_BUTTON_NAME
field_45978
TRAILER_TEXT
private static final Text
PUBLISHER_BUTTON_NAME
PUBLISHER_BUTTON_NAME
field_45979
PUBLISHER_TEXT
private static final int
BUTTON_WIDTH
BUTTON_WIDTH
field_45974
field_45974
private final ThreePartsLayoutWidget
layout
layout
field_45976
layout
private final Consumer<WorldTemplate>
callback
callback
field_27941
callback
private RealmsSelectWorldTemplateScreen$WorldTemplateObjectSelectionList
worldTemplateList
worldTemplateList
field_20071
templateList
private final RealmsServer$WorldType
worldType
worldType
field_20079
worldType
private final List<Text>
subtitle
subtitle
field_62460
field_62460
private ButtonWidget
selectButton
selectButton
field_20074
selectButton
private ButtonWidget
trailerButton
trailerButton
field_20075
trailerButton
private ButtonWidget
publisherButton
publisherButton
field_20076
publisherButton
private WorldTemplate
selectedTemplate
selectedTemplate
field_20072
selectedTemplate
private URI
currentLink
currentLink
field_20078
currentLink
private List<TextRenderingUtils$Line>
noTemplatesMessage
noTemplatesMessage
field_20085
noTemplatesMessage

Constructor summary

ModifierConstructor
public (Text title, Consumer<WorldTemplate> callback, RealmsServer$WorldType worldType, WorldTemplatePaginatedList alreadyFetched)
public (Text title, Consumer<WorldTemplate> callback, RealmsServer$WorldType worldType, WorldTemplatePaginatedList templateList, List<Text> subtitle)

Method summary

Modifier and TypeMethod
public void
init()
init()
method_25426()
init()
protected void
repositionElements()
repositionElements()
method_48640()
refreshWidgetPositions()
public Text
getNarrationMessage()
getNarrationMessage()
method_25435()
getNarratedTitle()
private void
updateButtonStates()
updateButtonStates()
method_21425()
updateButtonStates()
public void
onClose()
onClose()
method_25419()
close()
private void
selectTemplate()
selectTemplate()
method_21440()
selectTemplate()
private void
onTrailer()
onTrailer()
method_21442()
onTrailer()
private void
onPublish()
onPublish()
method_21444()
onPublish()
private void
fetchTemplatesAsync(WorldTemplatePaginatedList startPage)
fetchTemplatesAsync(WorldTemplatePaginatedList startPage)
method_21415(class_4891 arg0)
setPagination(WorldTemplatePaginatedList templateList)
private com.mojang.datafixers.util.Either<WorldTemplatePaginatedList, Exception>
fetchTemplates(WorldTemplatePaginatedList paginatedList, RealmsClient client)
fetchTemplates(WorldTemplatePaginatedList paginatedList, RealmsClient client)
method_21416(class_4891 arg0, class_4341 arg1)
fetchWorldTemplates(WorldTemplatePaginatedList templateList, RealmsClient realms)
public void
extractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a)
extractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
private void
extractMultilineMessage(GuiGraphicsExtractor graphics, int xm, int ym, List<TextRenderingUtils$Line> noTemplatesMessage)
extractMultilineMessage(GuiGraphicsExtractor graphics, int xm, int ym, List<TextRenderingUtils$Line> noTemplatesMessage)
method_21414(class_332 arg0, int arg1, int arg2, List<class_4450$class_4451> arg3)
renderMessages(DrawContext context, int x, int y, List<TextRenderingUtils$Line> messages)