@Environment(value=CLIENT) public class RealmsSelectWorldTemplateScreen extends RealmsScreen
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList |
(package private) class |
RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry |
| Modifier and Type | Field and Description |
|---|---|
private int |
clicks |
private String |
currentLink |
private boolean |
displayWarning |
private boolean |
hoverWarning |
private static Identifier |
LINK_ICONS |
private static Logger |
LOGGER |
private List<TextRenderingUtils.Line> |
noTemplatesMessage |
private RealmsScreenWithCallback |
parent |
private ButtonWidget |
publisherButton |
private ButtonWidget |
selectButton |
private int |
selectedTemplate |
private static Identifier |
SLOT_FRAME |
private RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList |
templateList |
private Text |
title |
private String |
toolTip |
private static Identifier |
TRAILER_ICONS |
private ButtonWidget |
trailerButton |
private Text[] |
warning |
private String |
warningURL |
private RealmsServer.WorldType |
worldType |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback parent,
RealmsServer.WorldType worldType) |
RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback parent,
RealmsServer.WorldType worldType,
WorldTemplatePaginatedList list) |
| Modifier and Type | Method and Description |
|---|---|
private void |
backButtonClicked() |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
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) |
private WorldTemplate |
method_21434() |
private boolean |
method_25247() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
private void |
onPublish() |
private void |
onTrailer() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
protected void |
renderMousehoverTooltip(MatrixStack matrixStack,
String string,
int int2,
int int3) |
private void |
selectTemplate() |
private void |
setPagination(WorldTemplatePaginatedList worldTemplatePaginatedList) |
void |
setTitle(Text title) |
void |
setWarning(Text[] text) |
private boolean |
shouldPublisherBeVisible() |
private boolean |
shouldSelectButtonBeActive() |
private boolean |
shouldTrailerBeVisible() |
void |
tick() |
private void |
updateButtonStates() |
narrateLabels, rowaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, method_29638, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Logger LOGGER
private static final Identifier LINK_ICONS
private static final Identifier TRAILER_ICONS
private static final Identifier SLOT_FRAME
private final RealmsScreenWithCallback parent
private RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList templateList
private int selectedTemplate
private Text title
private ButtonWidget selectButton
private ButtonWidget trailerButton
private ButtonWidget publisherButton
private String toolTip
private String currentLink
private final RealmsServer.WorldType worldType
private int clicks
private String warningURL
private boolean displayWarning
private boolean hoverWarning
private List<TextRenderingUtils.Line> noTemplatesMessage
public RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback parent, RealmsServer.WorldType worldType)
public RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback parent, RealmsServer.WorldType worldType, @Nullable WorldTemplatePaginatedList list)
public void setTitle(Text title)
public void setWarning(Text[] text)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
private void updateButtonStates()
private boolean shouldSelectButtonBeActive()
private boolean shouldPublisherBeVisible()
private WorldTemplate method_21434()
private boolean shouldTrailerBeVisible()
public void tick()
tick in interface TickableElementtick in class RealmsScreenpublic boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screenprivate void backButtonClicked()
private void selectTemplate()
private boolean method_25247()
private void onTrailer()
private void onPublish()
private void setPagination(WorldTemplatePaginatedList worldTemplatePaginatedList)
private com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,String> method_21416(WorldTemplatePaginatedList worldTemplatePaginatedList, RealmsClient realmsClient)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private void method_21414(MatrixStack matrixStack, int int2, int int3, List<TextRenderingUtils.Line> list)
protected void renderMousehoverTooltip(MatrixStack matrixStack, String string, int int2, int int3)