public class ConfirmScreen extends Screen
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.booleans.BooleanConsumer |
callbackFunction |
protected java.lang.String |
cancelButtonText |
protected java.lang.String |
confirmButtonText |
private java.util.List<java.lang.String> |
listLines |
private ITextComponent |
messageLine2 |
private int |
ticksUntilEnable |
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
ConfirmScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer _callbackFunction,
ITextComponent _title,
ITextComponent _messageLine2) |
ConfirmScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer _callbackFunction,
ITextComponent _title,
ITextComponent _messageLine2,
java.lang.String _confirmButtonText,
java.lang.String _cancelButtonText) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNarrationMessage() |
protected void |
init() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
void |
setButtonDelay(int ticksUntilEnableIn) |
boolean |
shouldCloseOnEsc() |
void |
tick() |
addButton, children, getMinecraft, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocusedDefault
mouseMoved
private final ITextComponent messageLine2
private final java.util.List<java.lang.String> listLines
protected java.lang.String confirmButtonText
protected java.lang.String cancelButtonText
private int ticksUntilEnable
protected final it.unimi.dsi.fastutil.booleans.BooleanConsumer callbackFunction
public ConfirmScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer _callbackFunction, ITextComponent _title, ITextComponent _messageLine2)
public ConfirmScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer _callbackFunction, ITextComponent _title, ITextComponent _messageLine2, java.lang.String _confirmButtonText, java.lang.String _cancelButtonText)
public java.lang.String getNarrationMessage()
getNarrationMessage
in class Screen
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class Screen
public void setButtonDelay(int ticksUntilEnableIn)
public boolean shouldCloseOnEsc()
shouldCloseOnEsc
in class Screen
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
keyPressed
in class Screen