public class PokemonUI
extends java.lang.Object
| Constructor and Description |
|---|
PokemonUI(int leftOffset,
int topOffset)
Creates a pokemon ui.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawPokemon(com.mojang.blaze3d.matrix.MatrixStack matrix,
Pokemon pokemon,
int leftX,
int topY,
int mouseX,
int mouseY,
float zLevel)
Draws the pokemon on the screen.
|
void |
drawPokemon(com.mojang.blaze3d.matrix.MatrixStack matrix,
Pokemon pokemon,
int leftX,
int topY,
int mouseX,
int mouseY,
float zLevel,
boolean highlight)
Draws the pokemon on the screen.
|
boolean |
isMouseOver(int leftX,
int topY,
double mouseX,
double mouseY)
Checks if the cursor is over the pokemon.
|
public PokemonUI(int leftOffset,
int topOffset)
leftOffset - The x offset of the button from the left of the screen.topOffset - The y offset of the button from the top of the screen.public void drawPokemon(com.mojang.blaze3d.matrix.MatrixStack matrix,
Pokemon pokemon,
int leftX,
int topY,
int mouseX,
int mouseY,
float zLevel)
leftX - The x coordinate of the left side of the screen.topY - The y coordinate of the top of the screen.mouseX - The x coordinate of the cursor.mouseY - The y coordinate of the cursor.zLevel - The z coordinate of the button.public void drawPokemon(com.mojang.blaze3d.matrix.MatrixStack matrix,
Pokemon pokemon,
int leftX,
int topY,
int mouseX,
int mouseY,
float zLevel,
boolean highlight)
leftX - The x coordinate of the left side of the screen.topY - The y coordinate of the top of the screen.mouseX - The x coordinate of the cursor.mouseY - The y coordinate of the cursor.zLevel - The z coordinate of the button.highlight - Whether to show an outline on the ui.public boolean isMouseOver(int leftX,
int topY,
double mouseX,
double mouseY)
leftX - The x coordinate of the left side of the screen.topY - The y coordinate of the top of the screen.mouseX - The x coordinate of the cursor.mouseY - The y coordinate of the cursor.