Class PixelmonSpawnerEvent.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent
com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent.Pre
Enclosing class:
PixelmonSpawnerEvent

public static class PixelmonSpawnerEvent.Pre extends PixelmonSpawnerEvent
This is the pre-pixelmon spawn event fired before the entity is spawned and before the Pokemon is created from the specification Cancelling this will prevent the entity from being spawned
  • Constructor Details

  • Method Details

    • setSpec

      public void setSpec(PokemonSpecification spec)
      Sets the specification of the pokemon about to spawn
      Parameters:
      spec - The new specification
    • setSpawnPosition

      public void setSpawnPosition(net.minecraft.core.BlockPos spawnPosition)
      Sets the spawn position of the pokemon about to spawn
      Parameters:
      spawnPosition - The new specification