Class SpawnCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.conditions.SpawnCondition
A condition for a particular
SpawnInfo
and SpawnLocation
. To use an extension of
this class in the JSON files, the targetedSpawnCondition
must change to the relevant
class during pre-initialization.
For all information about the options available check the wiki link below.
https://pixelmonmod.com/wiki/index.php?title=Better_Spawner/Spawn_Condition TODO: change to use dynamic conditions-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fits
(SpawnInfo spawnInfo, SpawnLocation spawnLocation) Checks if the givenSpawnInfo
andSpawnLocation
satisfy this condition.void
onExport()
void
onImport()
To fill the transient (and convenient!) fields form the JSON friendly fields
-
Field Details
-
targetedSpawnCondition
-
times
Cached list of biomes for faster access. -
weathers
-
baseBlocks
-
neededNearbyBlocks
-
biomes
-
cachedDimensions
-
cachedWeathers
-
tag
-
seesSky
-
temperature
-
dimensions
-
worlds
-
structures
-
minX
-
maxX
-
minY
-
maxY
-
minZ
-
maxZ
-
moonPhase
-
minLightLevel
-
maxLightLevel
-
-
Constructor Details
-
SpawnCondition
public SpawnCondition()
-
-
Method Details
-
onExport
public void onExport() -
onImport
public void onImport()To fill the transient (and convenient!) fields form the JSON friendly fields -
fits
Checks if the givenSpawnInfo
andSpawnLocation
satisfy this condition.
-