Package net.minecraft.world.level.biome
Class MobSpawnSettings.Builder
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings.Builder
- Direct Known Subclasses:
MobSpawnSettingsBuilder
- Enclosing class:
- MobSpawnSettings
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected final Map<EntityType<?>,
MobSpawnSettings.MobSpawnCost> protected final Map<MobCategory,
List<MobSpawnSettings.SpawnerData>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMobCharge
(EntityType<?> p_48371_, double p_48372_, double p_48373_) addSpawn
(MobCategory p_48377_, MobSpawnSettings.SpawnerData p_48378_) build()
creatureGenerationProbability
(float p_48369_)
-
Field Details
-
spawners
-
mobSpawnCosts
-
creatureGenerationProbability
protected float creatureGenerationProbability
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addSpawn
public MobSpawnSettings.Builder addSpawn(MobCategory p_48377_, MobSpawnSettings.SpawnerData p_48378_) -
addMobCharge
public MobSpawnSettings.Builder addMobCharge(EntityType<?> p_48371_, double p_48372_, double p_48373_) -
creatureGenerationProbability
-
build
-