public class PixelmonBlockStartingBattleEvent
extends net.minecraftforge.fml.common.eventhandler.Event
PixelmonBlockTriggeredBattleEvent
Canceling this event will stop the battle from starting.Modifier and Type | Field and Description |
---|---|
EntityPixelmon |
initialisingPixelmon
The optional Pokemon that started it.
|
net.minecraft.entity.player.EntityPlayerMP |
player
The player being engaged in the battle
|
net.minecraft.util.math.BlockPos |
pos
The exact position of the block starting the battle
|
EnumBattleStartTypes |
startType
The source of the battle as an element of EnumBattleStartTypes
|
EntityPixelmon |
wildPixelmon1
The Pokemon being fought
|
EntityPixelmon |
wildPixelmon2
The optional second Pokemon being fought, used in the event of a double battle
|
net.minecraft.world.World |
worldIn
The world in which the block activating the battle is located
|
Constructor and Description |
---|
PixelmonBlockStartingBattleEvent(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayerMP player,
EnumBattleStartTypes startType,
EntityPixelmon fightingPokemon,
EntityPixelmon pixelmon1,
EntityPixelmon pixelmon2) |
public final net.minecraft.world.World worldIn
public final net.minecraft.util.math.BlockPos pos
public final net.minecraft.entity.player.EntityPlayerMP player
public final EnumBattleStartTypes startType
public final EntityPixelmon initialisingPixelmon
public final EntityPixelmon wildPixelmon1
public final EntityPixelmon wildPixelmon2
public PixelmonBlockStartingBattleEvent(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.EntityPlayerMP player, EnumBattleStartTypes startType, EntityPixelmon fightingPokemon, EntityPixelmon pixelmon1, EntityPixelmon pixelmon2)