public class TeamSelectPokemonIcon
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
selectIndex
The selection order index of the Pokémon.
|
Constructor and Description |
---|
TeamSelectPokemonIcon()
Creates an empty icon.
|
TeamSelectPokemonIcon(Pokemon pokemon,
java.lang.String disabled)
Creates an icon.
|
Modifier and Type | Method and Description |
---|---|
void |
drawIcon(com.mojang.blaze3d.matrix.MatrixStack matrix,
double mouseX,
double mouseY,
float zLevel,
boolean fullSelected)
Draws the Pokémon icon.
|
boolean |
isDisabled()
Checks if the Pokémon is not allowed to be selected for battle.
|
boolean |
isMouseOver(double mouseX,
double mouseY)
Checks if the cursor is currently hovering over the icon, and the icon is selectable.
|
TeamSelectPokemonIcon |
setPosition(int x,
int y)
Sets the position of the icon on the screen.
|
void |
setTickOffset(int tickOffset)
Sets the tick offset used for UI animation.
|
public TeamSelectPokemonIcon()
public TeamSelectPokemonIcon(Pokemon pokemon, java.lang.String disabled)
pokemon
- Details about the Pokémon to draw in the icon.disabled
- The reason that the Pokémon cannot be selected. Blank if the Pokémon can be selected.public TeamSelectPokemonIcon setPosition(int x, int y)
x
- The x coordinate of the left side of the icon.y
- The y coordinate of the top of the icon.public void setTickOffset(int tickOffset)
tickOffset
- The tick offset used for UI animation.public void drawIcon(com.mojang.blaze3d.matrix.MatrixStack matrix, double mouseX, double mouseY, float zLevel, boolean fullSelected)
mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.zLevel
- The z coordinate of the screen.fullSelected
- Whether the player has selected the maximum number of selectable Pokémon for the battle.public boolean isMouseOver(double mouseX, double mouseY)
mouseX
- The x coordinate of the cursor.mouseY
- The y coordinate of the cursor.public boolean isDisabled()