Class MobSpawnSettings
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobSpawnSettings> static final floatstatic final MobSpawnSettingsstatic final WeightedList<MobSpawnSettings.SpawnerData> private static final org.slf4j.Loggerprivate final Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> static final MobSpawnSettingsprivate final Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMobSpawnSettings(Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> spawnsByCategory, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> mobSpawnCosts) -
Method Summary
Modifier and TypeMethodDescriptiongetMobsInCategory(MobCategory category) getMobSpawnCost(EntityType<?> type) getMobsToSpawn(MobCategory category)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_CREATURE_WORLD_GEN_SPAWN_PROBABILITY
public static final float DEFAULT_CREATURE_WORLD_GEN_SPAWN_PROBABILITY- See Also:
-
EMPTY_MOB_LIST
-
EMPTY
-
NO_SPAWNS
-
CODEC
-
spawnsByCategory
-
mobSpawnCosts
-
-
Constructor Details
-
MobSpawnSettings
private MobSpawnSettings(Map<MobCategory, WeightedList<MobSpawnSettings.SpawnerData>> spawnsByCategory, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> mobSpawnCosts)
-
-
Method Details
-
getMobsToSpawn
-
getMobsInCategory
-
definedCategories
-
getMobSpawnCost
-
allSpawnCosts
-