@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 RealmsScreenWithCallback |
lastScreen |
private static Identifier |
LINK_ICONS |
private static Logger |
LOGGER |
private List<TextRenderingUtils.Line> |
noTemplatesMessage |
private ButtonWidget |
publisherButton |
private ButtonWidget |
selectButton |
private int |
selectedTemplate |
private static Identifier |
SLOT_FRAME |
private RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList |
templateList |
private String |
title |
private String |
toolTip |
private static Identifier |
TRAILER_ICONS |
private ButtonWidget |
trailerButton |
private String |
warning |
private String |
warningURL |
private RealmsServer.WorldType |
worldType |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, width
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback callback,
RealmsServer.WorldType worldType) |
RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback callback,
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(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(int mouseX,
int mouseY,
float delta) |
protected void |
renderMousehoverTooltip(String msg,
int x,
int y) |
private void |
selectTemplate() |
private void |
setPagination(WorldTemplatePaginatedList worldTemplatePaginatedList) |
void |
setTitle(String title) |
void |
setWarning(String warning) |
private boolean |
shouldPublisherBeVisible() |
private boolean |
shouldSelectButtonBeActive() |
private boolean |
shouldTrailerBeVisible() |
void |
tick() |
private void |
updateButtonStates() |
narrateLabels, row
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private 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 lastScreen
private RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList templateList
private int selectedTemplate
private String 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 warning
private String warningURL
private boolean displayWarning
private boolean hoverWarning
private List<TextRenderingUtils.Line> noTemplatesMessage
public RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback callback, RealmsServer.WorldType worldType)
public RealmsSelectWorldTemplateScreen(RealmsScreenWithCallback callback, RealmsServer.WorldType worldType, @Nullable WorldTemplatePaginatedList list)
public void setTitle(String title)
public void setWarning(String warning)
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 class RealmsScreen
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class Screen
private 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(int mouseX, int mouseY, float delta)
private void method_21414(int int2, int int3, List<TextRenderingUtils.Line> list)
protected void renderMousehoverTooltip(String msg, int x, int y)