Class PixelmonSpawnerEvent.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent
com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent.Post
- Enclosing class:
- PixelmonSpawnerEvent
This is the post-pixelmon spawn event fired after the entity is spawned and after the Pokemon is created
from the specification
This is where you can modify the pokemon/entity that has been spawned
This is not cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent
PixelmonSpawnerEvent.Post, PixelmonSpawnerEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent
spawner, spawnPosition, spec
-
Constructor Summary
ConstructorDescriptionPost
(PixelmonSpawnerTileEntity spawner, PokemonSpecification spec, net.minecraft.core.BlockPos spawnPosition, PixelmonEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionGets the entity that has been spawnedGets the Pokemon that has been spawnedMethods inherited from class com.pixelmonmod.pixelmon.api.events.spawning.PixelmonSpawnerEvent
getLevel, getSpawner, getSpawnerPosition, getSpawnerState, getSpawnPosition, getSpec
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Post
public Post(PixelmonSpawnerTileEntity spawner, PokemonSpecification spec, net.minecraft.core.BlockPos spawnPosition, PixelmonEntity entity)
-
-
Method Details
-
getEntity
Gets the entity that has been spawned- Returns:
- The entity
-
getPokemon
Gets the Pokemon that has been spawned- Returns:
- The Pokemon
-