public class PixelmonBlockTriggeredBattleEvent
extends net.minecraftforge.fml.common.eventhandler.Event
PixelmonBlockStartingBattleEvent
Canceling this event will stop any chance of a battle startingModifier and Type | Field and Description |
---|---|
BlockSpawningHandler |
handler
The specific spawning handler being used to trigger the event
|
EntityPixelmon |
pixelmon
The Pokemon that triggered the event if from a
MoveSkill otherwise it will be null |
net.minecraft.entity.player.EntityPlayerMP |
player
The player who triggered the event
|
net.minecraft.util.math.BlockPos |
pos
The position of the block triggering the event
|
EnumBattleStartTypes |
startType
The source of the battle as an element of EnumBattleStartTypes
|
net.minecraft.world.World |
world
The world in which the triggering block is located
|
Constructor and Description |
---|
PixelmonBlockTriggeredBattleEvent(BlockSpawningHandler handler,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayerMP player,
EntityPixelmon entityPixelmon,
EnumBattleStartTypes startType) |
public final BlockSpawningHandler handler
public final net.minecraft.world.World world
public final net.minecraft.util.math.BlockPos pos
public final net.minecraft.entity.player.EntityPlayerMP player
public final EntityPixelmon pixelmon
MoveSkill
otherwise it will be nullpublic final EnumBattleStartTypes startType
public PixelmonBlockTriggeredBattleEvent(BlockSpawningHandler handler, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.EntityPlayerMP player, EntityPixelmon entityPixelmon, EnumBattleStartTypes startType)