public class ThrowPokeballEvent
extends net.minecraftforge.fml.common.eventhandler.Event
usedInBattle
is falseModifier and Type | Field and Description |
---|---|
net.minecraft.item.ItemStack |
itemStack
The ItemStack for the Pokéball
|
net.minecraft.entity.player.EntityPlayer |
player
The player throwing the Pokéball
|
EnumPokeballs |
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.EntityPlayer player,
net.minecraft.item.ItemStack itemStack,
EnumPokeballs type,
boolean usedInBattle) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCancelable() |
void |
setCanceled(boolean cancel) |
public net.minecraft.entity.player.EntityPlayer player
public net.minecraft.item.ItemStack itemStack
public EnumPokeballs type
public boolean usedInBattle
public ThrowPokeballEvent(net.minecraft.entity.player.EntityPlayer player, net.minecraft.item.ItemStack itemStack, EnumPokeballs type, boolean usedInBattle)