public abstract class ChooseMove extends BattleBaseScreen
bm, mode, parent
Constructor and Description |
---|
ChooseMove(BattleScreen parent,
BattleMode mode)
Initializes the screen.
|
Modifier and Type | Method and Description |
---|---|
void |
click(int width,
int height,
double mouseX,
double mouseY)
Handles a click input.
|
protected abstract void |
clickMove(int moveIndex)
Sends the selection of a move to the server.
|
void |
onClose()
Cleans up when the screen is closed.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
float partialTicks)
Draws the battle screen.
|
void |
renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix,
int width,
int height,
int mouseX,
int mouseY,
int vOffset) |
getMode, isScreen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, 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 ChooseMove(BattleScreen parent, BattleMode mode)
parent
- The parent screen of this screen.mode
- The mode that this screen shows for.public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, float partialTicks)
BattleBaseScreen
render
in class BattleBaseScreen
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 void click(int width, int height, double mouseX, double mouseY)
BattleBaseScreen
click
in class BattleBaseScreen
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.protected abstract void clickMove(int moveIndex)
moveIndex
- The index of the selected move.public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
public void renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, int vOffset)
renderBackground
in class BattleBaseScreen