public class PokemonSlot
extends java.lang.Object
Constructor and Description |
---|
PokemonSlot(RaidData raid,
double x,
double y,
double z,
Pokemon pokemon,
java.util.function.Consumer<java.lang.Integer> onClick) |
PokemonSlot(RaidData raid,
double x,
double y,
double z,
RaidData.RaidPlayer player,
java.util.function.Consumer<java.lang.Integer> onClick) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.mojang.blaze3d.matrix.MatrixStack matrix,
double mouseX,
double mouseY,
double width,
double height,
boolean selected,
float partialTicks) |
int |
getIndex() |
boolean |
isInteractable() |
boolean |
isPlayer(java.util.UUID uuid) |
boolean |
isWithin(double x,
double y) |
void |
onClick(double mouseX,
double mouseY,
int button) |
PokemonSlot |
setEnabled(boolean enabled) |
PokemonSlot |
setIndex(int index) |
PokemonSlot |
setPlayer(net.minecraft.client.network.play.NetworkPlayerInfo npi) |
PokemonSlot |
setPokemon(Pokemon pokemon) |
PokemonSlot |
setVisible(boolean visible) |
public PokemonSlot(RaidData raid, double x, double y, double z, RaidData.RaidPlayer player, java.util.function.Consumer<java.lang.Integer> onClick)
public void draw(com.mojang.blaze3d.matrix.MatrixStack matrix, double mouseX, double mouseY, double width, double height, boolean selected, float partialTicks)
public boolean isWithin(double x, double y)
public void onClick(double mouseX, double mouseY, int button)
public boolean isInteractable()
public PokemonSlot setVisible(boolean visible)
public PokemonSlot setEnabled(boolean enabled)
public PokemonSlot setPokemon(Pokemon pokemon)
public PokemonSlot setIndex(int index)
public PokemonSlot setPlayer(net.minecraft.client.network.play.NetworkPlayerInfo npi)
public int getIndex()
public boolean isPlayer(java.util.UUID uuid)