Package net.minecraft.world.biome
Class MobSpawnInfo.Builder
- java.lang.Object
-
- net.minecraft.world.biome.MobSpawnInfo.Builder
-
- Direct Known Subclasses:
MobSpawnInfoBuilder
- Enclosing class:
- MobSpawnInfo
public static class MobSpawnInfo.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected float
creatureGenerationProbability
protected java.util.Map<EntityType<?>,MobSpawnInfo.SpawnCosts>
mobSpawnCosts
protected boolean
playerCanSpawn
protected java.util.Map<EntityClassification,java.util.List<MobSpawnInfo.Spawners>>
spawners
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MobSpawnInfo.Builder
addMobCharge(EntityType<?> p_242573_1_, double p_242573_2_, double p_242573_4_)
MobSpawnInfo.Builder
addSpawn(EntityClassification p_242575_1_, MobSpawnInfo.Spawners p_242575_2_)
MobSpawnInfo
build()
MobSpawnInfo.Builder
creatureGenerationProbability(float p_242572_1_)
MobSpawnInfo.Builder
setPlayerCanSpawn()
-
-
-
Field Detail
-
spawners
protected final java.util.Map<EntityClassification,java.util.List<MobSpawnInfo.Spawners>> spawners
-
mobSpawnCosts
protected final java.util.Map<EntityType<?>,MobSpawnInfo.SpawnCosts> mobSpawnCosts
-
creatureGenerationProbability
protected float creatureGenerationProbability
-
playerCanSpawn
protected boolean playerCanSpawn
-
-
Method Detail
-
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
public MobSpawnInfo.Builder creatureGenerationProbability(float p_242572_1_)
-
setPlayerCanSpawn
public MobSpawnInfo.Builder setPlayerCanSpawn()
-
build
public MobSpawnInfo build()
-
-