Package net.minecraft.world.level.biome
Class MobSpawnSettings
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MobSpawnSettings>private final Set<EntityType<?>>private final floatprivate static final floatstatic final MobSpawnSettingsstatic final WeightedRandomList<MobSpawnSettings.SpawnerData>private static final org.slf4j.Loggerprivate final Map<EntityType<?>,MobSpawnSettings.MobSpawnCost> private final Map<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> private final Set<MobCategory>
- 
Constructor SummaryConstructorsConstructorDescriptionMobSpawnSettings(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) 
- 
Method SummaryModifier and TypeMethodDescriptionfloatSet<EntityType<?>>getMobs(MobCategory p_151799_) getMobSpawnCost(EntityType<?> p_48346_) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
DEFAULT_CREATURE_SPAWN_PROBABILITYprivate static final float DEFAULT_CREATURE_SPAWN_PROBABILITY- See Also:
 
- 
EMPTY_MOB_LIST
- 
EMPTY
- 
CODEC
- 
creatureGenerationProbabilityprivate final float creatureGenerationProbability
- 
spawners
- 
mobSpawnCosts
- 
typesView
- 
costView
 
- 
- 
Constructor Details- 
MobSpawnSettingsMobSpawnSettings(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) 
 
- 
- 
Method Details- 
getMobs
- 
getSpawnerTypes
- 
getMobSpawnCost
- 
getEntityTypes
- 
getCreatureProbabilitypublic float getCreatureProbability()
 
-