public static interface BiomeModificationContext.SpawnSettingsContext
Modifier and Type | Method and Description |
---|---|
void |
addSpawn(net.minecraft.entity.SpawnGroup spawnGroup,
net.minecraft.world.biome.SpawnSettings.SpawnEntry spawnEntry)
Associated JSON property:
spawners . |
void |
clearSpawnCost(net.minecraft.entity.EntityType<?> entityType)
Removes a spawn cost entry for a given entity type.
|
default void |
clearSpawns()
Removes all spawns.
|
default void |
clearSpawns(net.minecraft.entity.SpawnGroup group)
Removes all spawns of the given entity type.
|
boolean |
removeSpawns(BiPredicate<net.minecraft.entity.SpawnGroup,net.minecraft.world.biome.SpawnSettings.SpawnEntry> predicate)
Removes any spawns matching the given predicate from this biome, and returns true if any matched.
|
default boolean |
removeSpawnsOfEntityType(net.minecraft.entity.EntityType<?> entityType)
Removes all spawns of the given entity type.
|
void |
setCreatureSpawnProbability(float probability)
Associated JSON property:
creature_spawn_probability . |
void |
setPlayerSpawnFriendly(boolean playerSpawnFriendly)
Associated JSON property:
player_spawn_friendly . |
void |
setSpawnCost(net.minecraft.entity.EntityType<?> entityType,
double mass,
double gravityLimit)
Associated JSON property:
spawn_costs . |
void setPlayerSpawnFriendly(boolean playerSpawnFriendly)
player_spawn_friendly
.SpawnSettings.isPlayerSpawnFriendly()
,
SpawnSettings.Builder#playerSpawnFriendly()
void setCreatureSpawnProbability(float probability)
creature_spawn_probability
.SpawnSettings.getCreatureSpawnProbability()
,
SpawnSettings.Builder#creatureSpawnProbability(float)
void addSpawn(net.minecraft.entity.SpawnGroup spawnGroup, net.minecraft.world.biome.SpawnSettings.SpawnEntry spawnEntry)
spawners
.SpawnSettings.getSpawnEntry(SpawnGroup)
,
SpawnSettings.Builder#spawn(SpawnGroup, SpawnSettings.SpawnEntry)
boolean removeSpawns(BiPredicate<net.minecraft.entity.SpawnGroup,net.minecraft.world.biome.SpawnSettings.SpawnEntry> predicate)
Associated JSON property: spawners
.
default boolean removeSpawnsOfEntityType(net.minecraft.entity.EntityType<?> entityType)
Associated JSON property: spawners
.
default void clearSpawns(net.minecraft.entity.SpawnGroup group)
Associated JSON property: spawners
.
default void clearSpawns()
Associated JSON property: spawners
.
void setSpawnCost(net.minecraft.entity.EntityType<?> entityType, double mass, double gravityLimit)
spawn_costs
.SpawnSettings.getSpawnDensity(EntityType)
,
SpawnSettings.Builder#spawnCost(EntityType, double, double)
void clearSpawnCost(net.minecraft.entity.EntityType<?> entityType)
Associated JSON property: spawn_costs
.