Class RealmsSelectWorldTemplateScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private String
private boolean
private boolean
private final NotifableRealmsScreen
private static final ResourceLocation
private static final org.apache.logging.log4j.Logger
private List<TextRenderingUtils.Line>
private static final ITextComponent
private Button
private Button
private int
private static final ResourceLocation
private ITextComponent
private ITextComponent
private static final ResourceLocation
private static final ITextComponent
private Button
private ITextComponent[]
private String
private final RealmsServer.ServerType
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionRealmsSelectWorldTemplateScreen
(NotifableRealmsScreen p_i51752_1_, RealmsServer.ServerType p_i51752_2_) RealmsSelectWorldTemplateScreen
(NotifableRealmsScreen p_i51753_1_, RealmsServer.ServerType p_i51753_2_, WorldTemplatePaginatedList p_i51753_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,
String> fetchTemplates
(WorldTemplatePaginatedList p_224509_1_, RealmsClient p_224509_2_) private void
fetchTemplatesAsync
(WorldTemplatePaginatedList p_224497_1_) private WorldTemplate
private boolean
void
init()
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) boolean
mouseClicked
(double p_231044_1_, double p_231044_3_, int p_231044_5_) private void
private void
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) protected void
renderMousehoverTooltip
(MatrixStack p_237993_1_, ITextComponent p_237993_2_, int p_237993_3_, int p_237993_4_) private void
renderMultilineMessage
(MatrixStack p_237992_1_, int p_237992_2_, int p_237992_3_, List<TextRenderingUtils.Line> p_237992_4_) private void
void
setTitle
(ITextComponent p_238001_1_) void
setWarning
(ITextComponent... p_238002_1_) private boolean
private boolean
private boolean
void
tick()
private void
Methods inherited from class net.minecraft.realms.RealmsScreen
narrateLabels, row
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
LINK_ICON
-
TRAILER_ICON
-
SLOT_FRAME_LOCATION
-
PUBLISHER_LINK_TOOLTIP
-
TRAILER_LINK_TOOLTIP
-
lastScreen
-
worldTemplateObjectSelectionList
-
selectedTemplate
private int selectedTemplate -
title
-
selectButton
-
trailerButton
-
publisherButton
-
toolTip
-
currentLink
-
worldType
-
clicks
private int clicks -
warning
-
warningURL
-
displayWarning
private boolean displayWarning -
hoverWarning
private boolean hoverWarning -
noTemplatesMessage
-
-
Constructor Details
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(NotifableRealmsScreen p_i51752_1_, RealmsServer.ServerType p_i51752_2_) -
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(NotifableRealmsScreen p_i51753_1_, RealmsServer.ServerType p_i51753_2_, @Nullable WorldTemplatePaginatedList p_i51753_3_)
-
-
Method Details
-
setTitle
-
setWarning
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) -
init
public void init() -
updateButtonStates
private void updateButtonStates() -
shouldSelectButtonBeActive
private boolean shouldSelectButtonBeActive() -
shouldPublisherBeVisible
private boolean shouldPublisherBeVisible() -
getSelectedTemplate
-
shouldTrailerBeVisible
private boolean shouldTrailerBeVisible() -
tick
public void tick()- Specified by:
tick
in interfaceIScreen
- Overrides:
tick
in classRealmsScreen
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classScreen
-
backButtonClicked
private void backButtonClicked() -
selectTemplate
private void selectTemplate() -
hasValidTemplate
private boolean hasValidTemplate() -
onTrailer
private void onTrailer() -
onPublish
private void onPublish() -
fetchTemplatesAsync
-
fetchTemplates
private com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,String> fetchTemplates(WorldTemplatePaginatedList p_224509_1_, RealmsClient p_224509_2_) -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
renderMultilineMessage
private void renderMultilineMessage(MatrixStack p_237992_1_, int p_237992_2_, int p_237992_3_, List<TextRenderingUtils.Line> p_237992_4_) -
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack p_237993_1_, @Nullable ITextComponent p_237993_2_, int p_237993_3_, int p_237993_4_)
-