@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, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_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 matrixStack,
int x,
int y,
Text text,
Identifier identifier,
boolean bool,
boolean bool2) |
private int |
frame(int i) |
void |
init()
Called when a screen should be initialized.
|
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers)
Callback for when a key down event has been captured.
|
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(Text text) |
void |
setSlot(int slot) |
private void |
switchSlot() |
void |
switchSlot(Runnable callback) |
private void |
triggerResetWorld(RealmsResetWorldScreen.ResetWorldInfo resetWorldInfo) |
narrateLabels, row, tick
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private 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 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(Text text)
public void init()
This method is called when this screen is opened
or resized.
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
GLFW
class.keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class Screen
keyCode
- the named key code of the event as described in the GLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)true
to indicate that the event handling is successful/validKeyboard.onKey(long, int, int, int, int)
,
GLFW.GLFW_KEY_Q
,
GLFWKeyCallbackI.invoke(long, int, int, int, int)
private int frame(int i)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private void drawFrame(MatrixStack matrixStack, int x, int y, Text text, Identifier identifier, boolean bool, boolean bool2)
protected void callback(@Nullable WorldTemplate template)
callback
in class RealmsScreenWithCallback
private 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)