public abstract class BattleBaseScreen
extends net.minecraft.client.gui.screen.Screen
Modifier and Type | Field and Description |
---|---|
protected ClientBattleManager |
bm
The client-side battle manager.
|
protected BattleMode |
mode
The mode represented by the screen.
|
protected BattleScreen |
parent
The battle GUI that the screen is a part of.
|
Constructor and Description |
---|
BattleBaseScreen(BattleScreen parent,
BattleMode mode)
Initializes the battle screen.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
click(int width,
int height,
double mouseX,
double mouseY)
Handles a click input.
|
BattleMode |
getMode()
Gets the mode of this screen.
|
boolean |
isScreen()
Determines whether the screen is the currently displayed screen.
|
abstract void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
float partialTicks)
Draws the battle screen.
|
abstract void |
renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
int vOffset) |
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
protected BattleScreen parent
protected ClientBattleManager bm
protected BattleMode mode
public BattleBaseScreen(BattleScreen parent, BattleMode mode)
parent
- The battle GUI that the screen is a part of.mode
- The mode represented by the screen.public abstract void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, float partialTicks)
matrix
- 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.public abstract void renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, int vOffset)
public abstract void click(int width, int height, double mouseX, double mouseY)
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.public boolean isScreen()
public BattleMode getMode()