public class UseBattleItemEvent
extends net.minecraftforge.fml.common.eventhandler.Event
target
and user
will be the same. For
items being used on a target, additionalInfo
will be equal to -1
. Modifier and Type | Field and Description |
---|---|
int |
additionalInfo
Additional information in integer form that the specific item might need to function.
|
BattleControllerBase |
bcb
The
BattleControllerBase representing the battle this is occurring in. |
BattleParticipant |
participant
The
BattleParticipant who chose to use this item. |
net.minecraft.item.ItemStack |
stack
The ItemStack being used on the Pokémon.
|
PixelmonWrapper |
target
The
PixelmonWrapper being targeted with this item. |
PixelmonWrapper |
user
The
PixelmonWrapper whose turn is being consumed to use this item. |
Constructor and Description |
---|
UseBattleItemEvent(PixelmonWrapper user,
PixelmonWrapper target,
net.minecraft.item.ItemStack stack,
int additionalInfo) |
public final BattleControllerBase bcb
BattleControllerBase
representing the battle this is occurring in.public final BattleParticipant participant
BattleParticipant
who chose to use this item.public final PixelmonWrapper user
PixelmonWrapper
whose turn is being consumed to use this item.public PixelmonWrapper target
PixelmonWrapper
being targeted with this item. In self-targeting cases, this is user
public net.minecraft.item.ItemStack stack
null
and is never wrapping an item that
doesn't extend PixelmonItem.public int additionalInfo
public UseBattleItemEvent(PixelmonWrapper user, PixelmonWrapper target, net.minecraft.item.ItemStack stack, int additionalInfo)