MobSpawnSettingsBuilder
Builder for a biome's MobSpawnSettingsBuilder. The following settings are available:
creatureGenerationProbability
- The probability of a creature spawning in a chunk. The default value is0.1
.spawners
- A Map of MobCategory -> List<SpawnerData> that define the spawn conditions and properties for mobs.mobSpawnCosts
- A Map of EntityType ->MobSpawnCost that define the spawn costs for mobs. For more information on Minecraft's spawn costs system, check out the Minecraft Wiki
Functions
Adds a SpawnerData to the spawners
setting of the biome's mob spawn settings.
Adds a SpawnerData to the spawners
setting of the biome's mob spawn settings by creating a new SpawnerData instance out of the given entityType, minGroupSize and maxGroupSize. The weight
is set to 1
.
Adds a SpawnerData to the spawners
setting of the biome's mob spawn settings by creating a new SpawnerData instance out of the given entityType, weight, minGroupSize and maxGroupSize.
Sets the creatureGenerationProbability
setting of the biome's mob spawn settings. This setting is used to define the probability of a creature spawning in a chunk.
Sets the spawn cost for entityType to the given spawnCost.
Sets the spawn cost for entityType to the given energyBudget and charge.