Package net.minecraft.world.biome
Class MobSpawnInfo.Builder
java.lang.Object
net.minecraft.world.biome.MobSpawnInfo.Builder
- Direct Known Subclasses:
MobSpawnInfoBuilder
- Enclosing class:
- MobSpawnInfo
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected final Map<EntityType<?>,
MobSpawnInfo.SpawnCosts> protected boolean
protected final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMobCharge
(EntityType<?> p_242573_1_, double p_242573_2_, double p_242573_4_) addSpawn
(EntityClassification p_242575_1_, MobSpawnInfo.Spawners p_242575_2_) build()
creatureGenerationProbability
(float p_242572_1_)
-
Field Details
-
spawners
-
mobSpawnCosts
-
creatureGenerationProbability
protected float creatureGenerationProbability -
playerCanSpawn
protected boolean playerCanSpawn
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addSpawn
public MobSpawnInfo.Builder addSpawn(EntityClassification p_242575_1_, MobSpawnInfo.Spawners p_242575_2_) -
addMobCharge
public MobSpawnInfo.Builder addMobCharge(EntityType<?> p_242573_1_, double p_242573_2_, double p_242573_4_) -
creatureGenerationProbability
-
setPlayerCanSpawn
-
build
-