@Environment(value=CLIENT) public class BackupPromptScreen extends Screen
| Modifier and Type | Class and Description |
|---|---|
static interface |
BackupPromptScreen.Callback |
| Modifier and Type | Field and Description |
|---|---|
protected BackupPromptScreen.Callback |
callback |
private String |
cancelText |
private String |
confirmText |
private CheckboxWidget |
eraseCacheCheckbox |
private String |
eraseCacheText |
private Screen |
parent |
private boolean |
showEraseCacheCheckbox |
private String |
skipText |
private Text |
subtitle |
private List<String> |
wrappedText |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
BackupPromptScreen(Screen parent,
BackupPromptScreen.Callback callback,
Text title,
Text subtitle,
boolean showEraseCacheCheckBox) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
void |
render(int mouseX,
int mouseY,
float delta) |
boolean |
shouldCloseOnEsc() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, tick, 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate final Screen parent
protected final BackupPromptScreen.Callback callback
private final Text subtitle
private final boolean showEraseCacheCheckbox
private final String eraseCacheText
private final String confirmText
private final String skipText
private final String cancelText
private CheckboxWidget eraseCacheCheckbox
public BackupPromptScreen(Screen parent, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckBox)
public void render(int mouseX,
int mouseY,
float delta)
public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class Screenpublic boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screen