public class ChoosePokemon extends BattleBaseScreen
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
backText
The text on the back button.
|
protected PixelmonClientData[] |
inBattle
The Pokémon in the player's party that are in battle.
|
protected PixelmonClientData[] |
inParty
The Pokémon that are in the player's party.
|
bm, mode, parent
Constructor and Description |
---|
ChoosePokemon(BattleScreen parent)
Initializes the GUI
|
ChoosePokemon(BattleScreen parent,
BattleMode mode)
Initializes the GUI with a custom battle mode.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSwitch(java.util.UUID newPokemonUUID)
Registers a switch action.
|
PixelmonClientData |
choosePokemonSlot(int width,
int height,
double mouseX,
double mouseY)
Determines the slot number of the Pokémon clicked on.
|
void |
click(int width,
int height,
double mouseX,
double mouseY)
Handles a click input.
|
protected void |
clickBackButton()
Handles the user clicking the back button.
|
protected void |
fillParty()
Sets the Pokémon in battle and in the player's party.
|
protected java.lang.String |
getBackText()
Gets the lang code for the text on the back button.
|
protected PixelmonClientData[] |
getParty()
Gets the current party in order.
|
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) |
protected void |
selectedMove()
Processes the selected switch.
|
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
protected PixelmonClientData[] inBattle
protected PixelmonClientData[] inParty
protected java.lang.String backText
public ChoosePokemon(BattleScreen parent)
parent
- The battle GUI that contains this screen.public ChoosePokemon(BattleScreen parent, BattleMode mode)
parent
- The battle GUI that contains this screen.mode
- The mode to assign this screen to.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 renderBackground(com.mojang.blaze3d.matrix.MatrixStack matrix, int width, int height, int mouseX, int mouseY, int vOffset)
renderBackground
in class BattleBaseScreen
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 void selectedMove()
public PixelmonClientData choosePokemonSlot(int width, int height, double mouseX, double mouseY)
width
- The width of the screen.height
- The height of the screen.mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.protected PixelmonClientData[] getParty()
protected void fillParty()
protected java.lang.String getBackText()
protected void clickBackButton()
protected void addSwitch(java.util.UUID newPokemonUUID)
newPokemonUUID
- The UUID of the Pokémon switching in.