Package net.minecraft.world.level.biome
Class MobSpawnSettings
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic class - 
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionMobSpawnSettings(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_)  - 
Method Summary
Modifier and TypeMethodDescriptionfloatSet<EntityType<?>>getMobs(MobCategory p_151799_) getMobSpawnCost(EntityType<?> p_48346_)  
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
DEFAULT_CREATURE_SPAWN_PROBABILITY
private static final float DEFAULT_CREATURE_SPAWN_PROBABILITY- See Also:
 
 - 
EMPTY_MOB_LIST
 - 
EMPTY
 - 
CODEC
 - 
creatureGenerationProbability
private final float creatureGenerationProbability - 
spawners
 - 
mobSpawnCosts
 - 
typesView
 - 
costView
 
 - 
 - 
Constructor Details
- 
MobSpawnSettings
MobSpawnSettings(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_)  
 - 
 - 
Method Details
- 
getMobs
 - 
getSpawnerTypes
 - 
getMobSpawnCost
 - 
getEntityTypes
 - 
getCreatureProbability
public float getCreatureProbability() 
 -