public class ThrowPokeballEvent
extends net.minecraftforge.eventbus.api.Event
usedInBattle
is falseModifier and Type | Field and Description |
---|---|
net.minecraft.item.ItemStack |
itemStack
The ItemStack for the Pokéball
|
net.minecraft.entity.player.PlayerEntity |
player
The player throwing the Pokéball
|
PokeBall |
type
The type of Pokéball being thrown
|
boolean |
usedInBattle
Whether or not the ball was thrown from in battle
|
Constructor and Description |
---|
ThrowPokeballEvent(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack itemStack,
PokeBall type,
boolean usedInBattle) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCancelable() |
void |
setCanceled(boolean cancel) |
public net.minecraft.entity.player.PlayerEntity player
public net.minecraft.item.ItemStack itemStack
public PokeBall type
public boolean usedInBattle
public ThrowPokeballEvent(net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack itemStack, PokeBall type, boolean usedInBattle)