@Environment(value=CLIENT) public class RealmsResetWorldScreen extends RealmsScreenWithCallback
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
RealmsResetWorldScreen.FrameButton |
(package private) static class |
RealmsResetWorldScreen.ResetType |
static class |
RealmsResetWorldScreen.ResetWorldInfo |
| Modifier and Type | Field and Description |
|---|---|
private Text |
buttonTitle |
private WorldTemplatePaginatedList |
field_20495 |
private WorldTemplatePaginatedList |
field_20496 |
private WorldTemplatePaginatedList |
field_20497 |
private WorldTemplatePaginatedList |
field_20498 |
private RealmsResetWorldScreen.ResetWorldInfo |
field_20499 |
private WorldTemplate |
field_20500 |
private String |
field_20501 |
private static Identifier |
field_22708 |
private static Identifier |
field_22709 |
private static Identifier |
field_22710 |
private Runnable |
field_22711 |
private Runnable |
field_22712 |
private static Identifier |
field_22713 |
private static Identifier |
field_22714 |
private static Identifier |
field_22715 |
private static Identifier |
field_22716 |
private Screen |
lastScreen |
private static Logger |
LOGGER |
private RealmsServer |
serverData |
int |
slot |
private Text |
subtitle |
private int |
subtitleColor |
private RealmsLabel |
subtitleLabel |
private Text |
title |
private RealmsLabel |
titleLabel |
private RealmsResetWorldScreen.ResetType |
typeToReset |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
RealmsResetWorldScreen(Screen screen,
RealmsServer realmsServer,
Runnable runnable,
Runnable runnable2) |
RealmsResetWorldScreen(Screen screen,
RealmsServer realmsServer,
Text text,
Text text2,
int int2,
Text text3,
Runnable runnable,
Runnable runnable2) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
callback(WorldTemplate template) |
private void |
drawFrame(MatrixStack matrixStack,
int int2,
int int3,
Text text,
Identifier identifier,
boolean bool,
boolean bool2) |
private int |
frame(int i) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private void |
method_25207(String string,
WorldTemplate worldTemplate,
int int2,
boolean bool) |
void |
removed() |
void |
render(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
void |
resetWorld(RealmsResetWorldScreen.ResetWorldInfo resetWorldInfo) |
void |
resetWorldWithTemplate(WorldTemplate template) |
void |
setResetTitle(String title) |
void |
setSlot(int slot) |
private void |
switchSlot() |
void |
switchSlot(Runnable callback) |
private void |
triggerResetWorld(RealmsResetWorldScreen.ResetWorldInfo resetWorldInfo) |
narrateLabels, row, tickaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Logger LOGGER
private static final Identifier field_22713
private static final Identifier field_22714
private static final Identifier field_22715
private static final Identifier field_22716
private static final Identifier field_22708
private static final Identifier field_22709
private static final Identifier field_22710
private final Screen lastScreen
private final RealmsServer serverData
private RealmsLabel titleLabel
private RealmsLabel subtitleLabel
private Text title
private Text subtitle
private Text buttonTitle
private int subtitleColor
private WorldTemplatePaginatedList field_20495
private WorldTemplatePaginatedList field_20496
private WorldTemplatePaginatedList field_20497
private WorldTemplatePaginatedList field_20498
public int slot
private RealmsResetWorldScreen.ResetType typeToReset
private RealmsResetWorldScreen.ResetWorldInfo field_20499
private WorldTemplate field_20500
private String field_20501
private final Runnable field_22711
private final Runnable field_22712
public RealmsResetWorldScreen(Screen screen, RealmsServer realmsServer, Runnable runnable, Runnable runnable2)
public void setSlot(int slot)
public void setResetTitle(String title)
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screenprivate int frame(int i)
public void render(MatrixStack matrixStack, int mouseY, int int2, float float2)
private void drawFrame(MatrixStack matrixStack, int int2, int int3, Text text, Identifier identifier, boolean bool, boolean bool2)
protected void callback(@Nullable WorldTemplate template)
callback in class RealmsScreenWithCallbackprivate void switchSlot()
public void switchSlot(Runnable callback)
public void resetWorldWithTemplate(WorldTemplate template)
private void triggerResetWorld(RealmsResetWorldScreen.ResetWorldInfo resetWorldInfo)
private void method_25207(@Nullable String string, @Nullable WorldTemplate worldTemplate, int int2, boolean bool)
public void resetWorld(RealmsResetWorldScreen.ResetWorldInfo resetWorldInfo)