public class PixelmonBlockTriggeredBattleEvent
extends net.minecraftforge.eventbus.api.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
|
PixelmonEntity |
pixelmon
The Pokemon that triggered the event if from a
MoveSkill otherwise it will be null |
net.minecraft.entity.player.ServerPlayerEntity |
player
The player who triggered the event
|
net.minecraft.util.math.BlockPos |
pos
The position of the block triggering the event
|
BattleStartTypes |
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.ServerPlayerEntity player,
PixelmonEntity entityPixelmon,
BattleStartTypes 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.ServerPlayerEntity player
public final PixelmonEntity pixelmon
MoveSkill
otherwise it will be nullpublic final BattleStartTypes startType
public PixelmonBlockTriggeredBattleEvent(BlockSpawningHandler handler, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.ServerPlayerEntity player, PixelmonEntity entityPixelmon, BattleStartTypes startType)