public class PixelmonBlockStartingBattleEvent
extends net.minecraftforge.eventbus.api.Event
PixelmonBlockTriggeredBattleEvent
Canceling this event will stop the battle from starting.Modifier and Type | Field and Description |
---|---|
PixelmonEntity |
initialisingPixelmon
The optional Pokemon that started it.
|
net.minecraft.entity.player.ServerPlayerEntity |
player
The player being engaged in the battle
|
net.minecraft.util.math.BlockPos |
pos
The exact position of the block starting the battle
|
BattleStartTypes |
startType
The source of the battle as an element of EnumBattleStartTypes
|
PixelmonEntity |
wildPixelmon1
The Pokemon being fought
|
PixelmonEntity |
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.ServerPlayerEntity player,
BattleStartTypes startType,
PixelmonEntity fightingPokemon,
PixelmonEntity pixelmon1,
PixelmonEntity pixelmon2) |
public final net.minecraft.world.World worldIn
public final net.minecraft.util.math.BlockPos pos
public final net.minecraft.entity.player.ServerPlayerEntity player
public final BattleStartTypes startType
public final PixelmonEntity initialisingPixelmon
public final PixelmonEntity wildPixelmon1
public final PixelmonEntity wildPixelmon2
public PixelmonBlockStartingBattleEvent(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.ServerPlayerEntity player, BattleStartTypes startType, PixelmonEntity fightingPokemon, PixelmonEntity pixelmon1, PixelmonEntity pixelmon2)