@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 |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
RealmsResetWorldScreen(Screen parent,
RealmsServer realmsServer,
Runnable runnable,
Runnable runnable2) |
RealmsResetWorldScreen(Screen parent,
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 matrices,
int x,
int y,
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 matrices,
int mouseX,
int mouseY,
float delta) |
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, method_29638, onClose, 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Logger LOGGER
private static final Identifier SLOT_FRAME_TEXTURE
private static final Identifier UPLOAD_TEXTURE
private static final Identifier ADVENTURE_TEXTURE
private static final Identifier SURVIVAL_SPAWN_TEXTURE
private static final Identifier NEW_WORLD_TEXTURE
private static final Identifier EXPERIENCE_TEXTURE
private static final Identifier INSPIRATION_TEXTURE
private final Screen parent
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 parent, 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 matrices, int mouseX, int mouseY, float delta)
private void drawFrame(MatrixStack matrices, int x, int y, 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)