Class RealmsSelectWorldTemplateScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
(package private) final Consumer<WorldTemplate>
(package private) String
private final HeaderAndFooterLayout
(package private) static final org.slf4j.Logger
(package private) List<TextRenderingUtils.Line>
private static final Component
private Button
private static final Component
private Button
(package private) WorldTemplate
(package private) static final ResourceLocation
private static final Component
private Button
private Component[]
(package private) RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList
private final RealmsServer.WorldType
Fields inherited from class net.minecraft.realms.RealmsScreen
COLOR_BRIGHT_YELLOW, COLOR_DARK_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED_FADE, COLOR_YELLOW, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionRealmsSelectWorldTemplateScreen
(Component p_167481_, Consumer<WorldTemplate> p_167482_, RealmsServer.WorldType p_167483_) RealmsSelectWorldTemplateScreen
(Component p_167485_, Consumer<WorldTemplate> p_167486_, RealmsServer.WorldType p_167487_, WorldTemplatePaginatedList p_167488_) -
Method Summary
Modifier and TypeMethodDescription(package private) com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,
Exception> fetchTemplates
(WorldTemplatePaginatedList p_89656_, RealmsClient p_89657_) private void
(package private) int
void
init()
void
onClose()
private void
private void
void
render
(GuiGraphics p_282162_, int p_89640_, int p_89641_, float p_89642_) private void
renderMultilineMessage
(GuiGraphics p_282398_, int p_282163_, int p_282021_, List<TextRenderingUtils.Line> p_282203_) protected void
private void
void
setWarning
(Component... p_89683_) (package private) void
Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
SLOT_FRAME_SPRITE
-
SELECT_BUTTON_NAME
-
TRAILER_BUTTON_NAME
-
PUBLISHER_BUTTON_NAME
-
BUTTON_WIDTH
private static final int BUTTON_WIDTH- See Also:
-
BUTTON_SPACING
private static final int BUTTON_SPACING- See Also:
-
layout
-
callback
-
worldTemplateObjectSelectionList
RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList worldTemplateObjectSelectionList -
worldType
-
selectButton
-
trailerButton
-
publisherButton
-
selectedTemplate
-
currentLink
-
warning
-
noTemplatesMessage
-
-
Constructor Details
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Component p_167481_, Consumer<WorldTemplate> p_167482_, RealmsServer.WorldType p_167483_) -
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Component p_167485_, Consumer<WorldTemplate> p_167486_, RealmsServer.WorldType p_167487_, @Nullable WorldTemplatePaginatedList p_167488_)
-
-
Method Details
-
setWarning
-
init
public void init() -
repositionElements
protected void repositionElements()- Overrides:
repositionElements
in classScreen
-
getNarrationMessage
- Overrides:
getNarrationMessage
in classScreen
-
updateButtonStates
void updateButtonStates() -
onClose
public void onClose() -
selectTemplate
private void selectTemplate() -
onTrailer
private void onTrailer() -
onPublish
private void onPublish() -
fetchTemplatesAsync
-
fetchTemplates
com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,Exception> fetchTemplates(WorldTemplatePaginatedList p_89656_, RealmsClient p_89657_) -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
renderMultilineMessage
private void renderMultilineMessage(GuiGraphics p_282398_, int p_282163_, int p_282021_, List<TextRenderingUtils.Line> p_282203_) -
getHeaderHeight
int getHeaderHeight()
-