@Environment(value=CLIENT) public class DeathScreen extends Screen
| Modifier and Type | Field and Description |
|---|---|
private Text |
field_26537 |
private boolean |
isHardcore |
private Text |
message |
private int |
ticksSinceDeath |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
DeathScreen(Text message,
boolean isHardcore) |
| Modifier and Type | Method and Description |
|---|---|
private Style |
getTextComponentUnderMouse(int mouseX) |
protected void |
init()
Called when a screen should be initialized.
|
boolean |
isPauseScreen() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
private void |
onConfirmQuit(boolean quit) |
private void |
quitLevel() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
boolean |
shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.
|
void |
tick() |
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, 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 int ticksSinceDeath
private final Text message
private final boolean isHardcore
private Text field_26537
protected void init()
This method is called when this screen is opened or resized.
public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class Screenprivate void onConfirmQuit(boolean quit)
private void quitLevel()
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
GLFW class.mouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousebutton - the mouse button numbertrue to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int),
GLFW.GLFW_MOUSE_BUTTON_1public boolean isPauseScreen()
isPauseScreen in class Screenpublic void tick()
tick in interface TickableElementtick in class Screen