Package net.minecraft.world.level.biome
Class MobSpawnSettings.Builder
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings.Builder
- Direct Known Subclasses:
MobSpawnInfoBuilder
- Enclosing class:
- MobSpawnSettings
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected Map<EntityType<?>,MobSpawnSettings.MobSpawnCost>
protected boolean
protected 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 -
playerCanSpawn
protected boolean playerCanSpawn
-
-
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
-
setPlayerCanSpawn
-
build
-