public abstract class YesNoDialogue extends BattleBaseScreen
bm, mode, parent| Constructor and Description |
|---|
YesNoDialogue(BattleScreen parent,
BattleMode mode)
Initializes the confirmation box.
|
| Modifier and Type | Method and Description |
|---|---|
void |
click(int width,
int height,
double mouseX,
double mouseY)
Handles a click input.
|
protected abstract void |
confirm()
Handles the user confirming the dialogue box's query.
|
protected abstract void |
drawConfirmText(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height)
Draws confirmation text on the dialogue box.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
float partialTicks)
Draws the battle screen.
|
getMode, isScreen, renderBackgroundaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, removed, render, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic YesNoDialogue(BattleScreen parent, BattleMode mode)
parent - The screen that caused this box to appear.mode - The mode that causes this box to appear.public void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
float partialTicks)
BattleBaseScreenrender in class BattleBaseScreenmatrix - The current transformation context.width - The width of the GUI.height - The height of the GUI.mouseX - The x coordinate of the cursor.mouseY - The y coordinate of the cursor.partialTicks - The current partial ticks.protected abstract void drawConfirmText(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height)
width - The width of the screen.height - The height of the screen.public void click(int width,
int height,
double mouseX,
double mouseY)
BattleBaseScreenclick in class BattleBaseScreenwidth - The width of the GUI.height - The height of the GUI.mouseX - The x coordinate of the cursor.mouseY - The y coordinate of the cursor.protected abstract void confirm()