Class PokemonSlot
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.raids.PokemonSlot
-
Constructor Summary
ConstructorsConstructorDescriptionPokemonSlot(RaidData raid, double x, double y, double z, Pokemon pokemon, Consumer<Integer> onClick) PokemonSlot(RaidData raid, double x, double y, double z, RaidData.RaidPlayer player, Consumer<Integer> onClick) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(net.minecraft.client.gui.GuiGraphics matrix, double mouseX, double mouseY, double width, double height, boolean selected, float partialTicks) intgetIndex()booleanbooleanbooleanisWithin(double x, double y) voidonClick(double mouseX, double mouseY, int button) setEnabled(boolean enabled) setIndex(int index) setPlayer(net.minecraft.client.multiplayer.PlayerInfo npi) setPokemon(Pokemon pokemon) setVisible(boolean visible)
-
Constructor Details
-
PokemonSlot
public PokemonSlot(RaidData raid, double x, double y, double z, RaidData.RaidPlayer player, Consumer<Integer> onClick) -
PokemonSlot
-
-
Method Details
-
draw
public void draw(net.minecraft.client.gui.GuiGraphics matrix, double mouseX, double mouseY, double width, double height, boolean selected, float partialTicks) -
isWithin
public boolean isWithin(double x, double y) -
onClick
public void onClick(double mouseX, double mouseY, int button) -
isInteractable
public boolean isInteractable() -
setVisible
-
setEnabled
-
setPokemon
-
setIndex
-
setPlayer
-
getIndex
public int getIndex() -
isPlayer
-