Class SpawningWildConfig
java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
com.pixelmonmod.pixelmon.api.config.SpawningWildConfig
- All Implemented Interfaces:
Config
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
base, config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
float
int
int
int
int
float
int
float
int
int
float
Methods inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
getNode, save
-
Constructor Details
-
SpawningWildConfig
public SpawningWildConfig()
-
-
Method Details
-
getEntitiesPerPlayer
public int getEntitiesPerPlayer()- Returns:
- The maximum number of entities (NPC or Pokémon) that can spawn per player. Lower for better performance.
-
getSpawnsPerPass
public int getSpawnsPerPass()- Returns:
- The maximum number of spawns in a single spawn cycle for a single player. Lower for slower spawning and better performance.
-
getSpawnFrequency
public float getSpawnFrequency()- Returns:
- The number of spawn passes made per minute. Decrease for better performance.
-
getMinimumDistanceBetweenSpawns
public float getMinimumDistanceBetweenSpawns()- Returns:
- The minimum number of blocks between a spawned entity and an existing living entity.
-
getMinimumDistanceFromCentre
public int getMinimumDistanceFromCentre()- Returns:
- The minimum distance from the player that entities may spawn. The lower this is, the closer entities will spawn to players.
-
getMaximumDistanceFromCentre
public int getMaximumDistanceFromCentre()- Returns:
- The maximum distance from the player that entities may spawn.
-
getHorizontalTrackFactor
public float getHorizontalTrackFactor()- Returns:
- How many ticks 'lead' the player tracking spawner will give players based on their motion. This tries to spawn at locations the player is about to be.
-
getVerticalTrackFactor
public float getVerticalTrackFactor()- Returns:
- How many ticks 'lead' the player tracking spawner will give players based on their vertical motion. Typically best as zero due to the interference jumping can cause.
-
getHorizontalSliceRadius
public int getHorizontalSliceRadius()- Returns:
- The horizontal diameter of the areas randomly selected near the player to do spawning in. Lower for better performance but less reliable spawning.
-
getVerticalSliceRadius
public int getVerticalSliceRadius()- Returns:
- The vertical diameter of the areas randomly selected near the player to do spawning in. Lower for better performance but less reliable spawning. Larger than horizontal to better match player behaviour.
-
getMaximumSpawnedPokemon
public int getMaximumSpawnedPokemon()- Returns:
- The global maximum number of Pokémon allowed to exist through regular world spawning.
-
getMaximumSpawnedFlyingPokemon
public int getMaximumSpawnedFlyingPokemon()- Returns:
- The global maximum number of FlyingPokémon allowed to exist through regular world spawning.
-
getMaximumSpawnedFlyingPokemonPerPlayer
public int getMaximumSpawnedFlyingPokemonPerPlayer()- Returns:
- The maximum number of FlyingPokémon allowed to exist through regular world spawning per player.
-