public class YesNoForfeit extends YesNoDialogue
bm, mode, parent
Constructor and Description |
---|
YesNoForfeit(BattleScreen parent)
Initializes the confirmation box.
|
Modifier and Type | Method and Description |
---|---|
protected void |
confirm()
Handles the user confirming the dialogue box's query.
|
protected void |
drawConfirmText(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height)
Draws confirmation text on the dialogue box.
|
void |
renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
int vOffset) |
click, render
getMode, isScreen
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public YesNoForfeit(BattleScreen parent)
parent
- The screen that caused this box to appear.protected void drawConfirmText(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height)
YesNoDialogue
drawConfirmText
in class YesNoDialogue
width
- The width of the screen.height
- The height of the screen.protected void confirm()
YesNoDialogue
confirm
in class YesNoDialogue
public void renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, int vOffset)
renderBackground
in class BattleBaseScreen