@Environment(value=CLIENT) public class DeathScreen extends Screen
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isHardcore |
private Text |
message |
private int |
ticksSinceDeath |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
DeathScreen(Text message,
boolean isHardcore) |
| Modifier and Type | Method and Description |
|---|---|
Text |
getTextComponentUnderMouse(int mouseX) |
protected void |
init() |
boolean |
isPauseScreen() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
private void |
onConfirmQuit(boolean quit) |
private void |
quitLevel() |
void |
render(int mouseX,
int mouseY,
float delta) |
boolean |
shouldCloseOnEsc() |
void |
tick() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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
public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class Screenprivate void onConfirmQuit(boolean quit)
private void quitLevel()
public void render(int mouseX,
int mouseY,
float delta)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
public boolean isPauseScreen()
isPauseScreen in class Screen