Class MysteryBoxEvent.Tick.DoSpawn

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
MysteryBoxEvent.Tick

public static class MysteryBoxEvent.Tick.DoSpawn extends MysteryBoxEvent.Tick
  • Constructor Details

    • DoSpawn

      public DoSpawn(MysteryBoxTileEntity box, net.minecraft.world.level.block.state.BlockState blockState, PixelmonEntity pokemon)
      Fired immediately before a Mystery Box spawns a Pokémon in the world. Cancelable.
      Parameters:
      box - The Mystery Box tile entity.
      blockState - The block state of this Mystery Box.
      pokemon - The Pokémon this Mystery Box wants to spawn.
  • Method Details

    • getPokemon

      public PixelmonEntity getPokemon()
      The Pokémon this Mystery Box wants to spawn.
      Returns:
      The Pokémon being spawned.