public static class MysteryBoxEvent.Tick.DoSpawn extends MysteryBoxEvent.Tick
MysteryBoxEvent.Tick.AboutToClose, MysteryBoxEvent.Tick.DoSpawn, MysteryBoxEvent.Tick.Start, MysteryBoxEvent.Tick.TrySpawn
MysteryBoxEvent.Activate, MysteryBoxEvent.ComparatorPower, MysteryBoxEvent.Feed, MysteryBoxEvent.Open, MysteryBoxEvent.Tick
Constructor and Description |
---|
DoSpawn(MysteryBoxTileEntity box,
net.minecraft.block.BlockState blockState,
PixelmonEntity pokemon)
Fired immediately before a Mystery Box spawns a Pokémon in the world.
|
Modifier and Type | Method and Description |
---|---|
PixelmonEntity |
getPokemon()
The Pokémon this Mystery Box wants to spawn.
|
getBlockState, getBox
public DoSpawn(MysteryBoxTileEntity box, net.minecraft.block.BlockState blockState, PixelmonEntity pokemon)
box
- The Mystery Box tile entity.blockState
- The block state of this Mystery Box.pokemon
- The Pokémon this Mystery Box wants to spawn.public PixelmonEntity getPokemon()