public abstract class WarningScreen<Parent extends net.minecraft.client.gui.screen.Screen>
extends net.minecraft.client.gui.screen.Screen
Modifier and Type | Field and Description |
---|---|
protected int |
guiLeft
Starting X position for the Gui.
|
protected int |
guiTop
Starting Y position for the Gui.
|
protected Parent |
previousScreen
The screen that opened the warning screen.
|
Modifier | Constructor and Description |
---|---|
protected |
WarningScreen(Parent previousScreen) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
confirmAction()
Performs an action when the player confirms the action.
|
protected void |
drawCenteredSplitText(com.mojang.blaze3d.matrix.MatrixStack matrix,
java.lang.String text)
Draws a centered, split message in the middle of the box.
|
protected abstract void |
drawWarningText(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws the warning text on the screen.
|
void |
init() |
boolean |
isPauseScreen() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int par3) |
void |
onClose()
Closes the warning and returns to the previous screen.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float f) |
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, removed, 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
protected int guiLeft
protected int guiTop
protected Parent extends net.minecraft.client.gui.screen.Screen previousScreen
protected WarningScreen(Parent previousScreen)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
public void init()
init
in class net.minecraft.client.gui.screen.Screen
public boolean mouseClicked(double mouseX, double mouseY, int par3)
protected abstract void confirmAction()
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
protected abstract void drawWarningText(com.mojang.blaze3d.matrix.MatrixStack matrix)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float f)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
protected void drawCenteredSplitText(com.mojang.blaze3d.matrix.MatrixStack matrix, java.lang.String text)
text
- The message to draw.