public class ChooseEther extends ChooseMove
bm, mode, parent
Constructor and Description |
---|
ChooseEther(BattleScreen parent)
Initializes the screen.
|
Modifier and Type | Method and Description |
---|---|
void |
click(int width,
int height,
double mouseX,
double mouseY)
Handles a click input.
|
protected void |
clickMove(int moveIndex)
Sends the selection of a move to the server.
|
onClose, render, renderBackground
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 ChooseEther(BattleScreen parent)
parent
- The parent screen of this screen.protected void clickMove(int moveIndex)
ChooseMove
clickMove
in class ChooseMove
moveIndex
- The index of the selected move.public void click(int width, int height, double mouseX, double mouseY)
BattleBaseScreen
click
in class ChooseMove
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.