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 class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec<MobSpawnSettings>
private Set<EntityType<?>>
private float
private static float
static MobSpawnSettings
static org.apache.logging.log4j.Logger
private Map<EntityType<?>,MobSpawnSettings.MobSpawnCost>
private boolean
private Set<MobCategory>
-
Constructor Summary
ConstructorDescriptionMobSpawnSettings(float p_48334_, Map<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> p_48335_, Map<EntityType<?>,MobSpawnSettings.MobSpawnCost> p_48336_, boolean p_48337_)
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Set<EntityType<?>>
getMobs(MobCategory p_151799_)
getMobSpawnCost(EntityType<?> p_48346_)
boolean
-
Field Details
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER -
DEFAULT_CREATURE_SPAWN_PROBABILITY
private static final float DEFAULT_CREATURE_SPAWN_PROBABILITY- See Also:
- Constant Field Values
-
EMPTY_MOB_LIST
-
EMPTY
-
CODEC
-
creatureGenerationProbability
private final float creatureGenerationProbability -
spawners
-
mobSpawnCosts
-
playerSpawnFriendly
private final boolean playerSpawnFriendly -
typesView
-
costView
-
-
Constructor Details
-
MobSpawnSettings
MobSpawnSettings(float p_48334_, Map<MobCategory,WeightedRandomList<MobSpawnSettings.SpawnerData>> p_48335_, Map<EntityType<?>,MobSpawnSettings.MobSpawnCost> p_48336_, boolean p_48337_)
-
-
Method Details
-
getMobs
-
getSpawnerTypes
-
getMobSpawnCost
-
getEntityTypes
-
getCreatureProbability
public float getCreatureProbability() -
playerSpawnFriendly
public boolean playerSpawnFriendly()
-