public class SpawnActionPokemon extends SpawnAction<PixelmonEntity>
SpawnAction
for Pokémon entities.Modifier and Type | Field and Description |
---|---|
BossTier |
bossTier |
Pokemon |
pokemon
The
Pokemon that is spawning. |
entity, spawnInfo, spawnLocation
Constructor and Description |
---|
SpawnActionPokemon(SpawnInfoPokemon spawnInfo,
SpawnLocation spawnLocation,
Pokemon pokemon,
BossTier bossTier) |
Modifier and Type | Method and Description |
---|---|
protected PixelmonEntity |
createEntity()
Creates the entity and returns the result.
|
PixelmonEntity |
doSpawn(AbstractSpawner spawner)
Does the spawn of this entity at the stored
SpawnLocation on behalf of the given AbstractSpawner . |
static int |
getPokemonLevelBasedOnDistance(SpawnLocation spawnLocation)
Gets the base pokemonLevel for a Pokémon spawning at this location according to the
spawnLevelsByDistance config option. |
applyLocationMutations, getOrCreateEntity, setEntity
public BossTier bossTier
public SpawnActionPokemon(SpawnInfoPokemon spawnInfo, SpawnLocation spawnLocation, Pokemon pokemon, BossTier bossTier)
protected PixelmonEntity createEntity()
SpawnAction
createEntity
in class SpawnAction<PixelmonEntity>
public PixelmonEntity doSpawn(AbstractSpawner spawner)
SpawnAction
SpawnLocation
on behalf of the given AbstractSpawner
.
This can return null if the spawn should fail at any point, and the Better Spawner will interpret this as a cancelled
spawn without consequences.
Overrides of this method are strongly advised to call the super due to important functions that occur here.
doSpawn
in class SpawnAction<PixelmonEntity>
public static int getPokemonLevelBasedOnDistance(SpawnLocation spawnLocation)
spawnLevelsByDistance
config option.