Package net.minecraft.world.level.biome
Class MobSpawnSettings
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<MobSpawnSettings> private final Set
<EntityType<?>> private final float
private static final float
static final MobSpawnSettings
static final WeightedRandomList
<MobSpawnSettings.SpawnerData> private static final org.slf4j.Logger
private final Map
<EntityType<?>, MobSpawnSettings.MobSpawnCost> private final Map
<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> private final Set
<MobCategory> -
Constructor Summary
ConstructorDescriptionMobSpawnSettings
(float p_196689_, Map<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> p_196690_, Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> p_196691_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Set
<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()
-