public class SpawnCondition
extends java.lang.Object
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_ConditionCreated by Hiroku
Modifier and Type | Field and Description |
---|---|
java.util.Set<net.minecraft.world.biome.Biome> |
biomes |
java.util.Set<net.minecraft.block.Block> |
cachedBaseBlocks |
java.util.Set<net.minecraft.block.Block> |
cachedNeededNearbyBlocks |
java.util.ArrayList<java.lang.Integer> |
dimensions |
java.lang.Integer |
maxLightLevel |
java.lang.Integer |
maxX |
java.lang.Integer |
maxY |
java.lang.Integer |
maxZ |
java.lang.Integer |
minLightLevel |
java.lang.Integer |
minX |
java.lang.Integer |
minY |
java.lang.Integer |
minZ |
java.lang.Integer |
moonPhase |
java.lang.Boolean |
seesSky |
java.lang.String |
tag |
static java.lang.Class<? extends SpawnCondition> |
targetedSpawnCondition |
net.minecraft.world.biome.Biome.TempCategory |
temperature |
java.util.ArrayList<WorldTime> |
times
Cached list of biomes for faster access.
|
java.util.ArrayList<java.lang.String> |
variant |
java.util.ArrayList<WeatherType> |
weathers |
java.util.ArrayList<java.lang.String> |
worlds |
Constructor and Description |
---|
SpawnCondition() |
Modifier and Type | Method and Description |
---|---|
static <T extends net.minecraftforge.registries.IForgeRegistryEntry<T>> |
cacheRegistry(java.lang.Class<T> clazz,
java.util.ArrayList<java.lang.String> from,
java.util.Set<T> to,
java.util.HashMap<java.lang.String,java.util.Set<T>> categories) |
boolean |
fits(SpawnInfo spawnInfo,
SpawnLocation spawnLocation)
Checks if the given
SpawnInfo and SpawnLocation satisfy this condition. |
void |
onExport() |
void |
onImport()
To fill the transient (and convenient!) fields form the JSON friendly fields
|
public static java.lang.Class<? extends SpawnCondition> targetedSpawnCondition
public java.util.ArrayList<WorldTime> times
public java.util.ArrayList<WeatherType> weathers
public transient java.util.Set<net.minecraft.block.Block> cachedBaseBlocks
public transient java.util.Set<net.minecraft.block.Block> cachedNeededNearbyBlocks
public transient java.util.Set<net.minecraft.world.biome.Biome> biomes
public java.util.ArrayList<java.lang.String> variant
public java.lang.String tag
public java.lang.Boolean seesSky
public net.minecraft.world.biome.Biome.TempCategory temperature
public java.util.ArrayList<java.lang.Integer> dimensions
public java.util.ArrayList<java.lang.String> worlds
public java.lang.Integer minX
public java.lang.Integer maxX
public java.lang.Integer minY
public java.lang.Integer maxY
public java.lang.Integer minZ
public java.lang.Integer maxZ
public java.lang.Integer moonPhase
public java.lang.Integer minLightLevel
public java.lang.Integer maxLightLevel
public void onExport()
public static <T extends net.minecraftforge.registries.IForgeRegistryEntry<T>> void cacheRegistry(java.lang.Class<T> clazz, java.util.ArrayList<java.lang.String> from, java.util.Set<T> to, java.util.HashMap<java.lang.String,java.util.Set<T>> categories)
public void onImport()
public boolean fits(SpawnInfo spawnInfo, SpawnLocation spawnLocation)
SpawnInfo
and SpawnLocation
satisfy this condition.