SpawnSettingsContext

public interface SpawnSettingsContext

Functions

addSpawn
Link copied to clipboard
abstract void addSpawn(SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry)
Associated JSON property: spawners.
clearSpawnCost
Link copied to clipboard
abstract void clearSpawnCost(EntityType<? extends Object> entityType)
Removes a spawn cost entry for a given entity type.
clearSpawns
Link copied to clipboard
void clearSpawns()
Removes all spawns.
void clearSpawns(SpawnGroup group)
Removes all spawns of the given entity type.
removeSpawns
Link copied to clipboard
abstract boolean removeSpawns(BiPredicate<SpawnGroup, SpawnSettings.SpawnEntry> predicate)
Removes any spawns matching the given predicate from this biome, and returns true if any matched.
removeSpawnsOfEntityType
Link copied to clipboard
boolean removeSpawnsOfEntityType(EntityType<? extends Object> entityType)
Removes all spawns of the given entity type.
setCreatureSpawnProbability
Link copied to clipboard
abstract void setCreatureSpawnProbability(float probability)
Associated JSON property: creature_spawn_probability.
setPlayerSpawnFriendly
Link copied to clipboard
abstract void setPlayerSpawnFriendly(boolean playerSpawnFriendly)
Associated JSON property: player_spawn_friendly.
setSpawnCost
Link copied to clipboard
abstract void setSpawnCost(EntityType<? extends Object> entityType, double mass, double gravityLimit)
Associated JSON property: spawn_costs.

Sources

jvm source
Link copied to clipboard