Package net.minecraft.world.biome
Class MobSpawnInfo
java.lang.Object
net.minecraft.world.biome.MobSpawnInfo
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MobSpawnInfo>
private final Set<EntityType<?>>
private final float
static final MobSpawnInfo
static final org.apache.logging.log4j.Logger
private final Map<EntityType<?>,
MobSpawnInfo.SpawnCosts> private final boolean
private final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> private final Set<EntityClassification>
-
Constructor Summary
ModifierConstructorDescriptionprivate
MobSpawnInfo
(float p_i241946_1_, Map<EntityClassification, List<MobSpawnInfo.Spawners>> p_i241946_2_, Map<EntityType<?>, MobSpawnInfo.SpawnCosts> p_i241946_3_, boolean p_i241946_4_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Set<EntityType<?>>
getMobs
(EntityClassification p_242559_1_) getMobSpawnCost
(EntityType<?> p_242558_1_) boolean
-
Field Details
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER -
EMPTY
-
CODEC
-
creatureGenerationProbability
private final float creatureGenerationProbability -
spawners
-
mobSpawnCosts
-
playerSpawnFriendly
private final boolean playerSpawnFriendly -
typesView
-
costView
-
-
Constructor Details
-
MobSpawnInfo
private MobSpawnInfo(float p_i241946_1_, Map<EntityClassification, List<MobSpawnInfo.Spawners>> p_i241946_2_, Map<EntityType<?>, MobSpawnInfo.SpawnCosts> p_i241946_3_, boolean p_i241946_4_)
-
-
Method Details
-
getMobs
-
getSpawnerTypes
-
getMobSpawnCost
-
getEntityTypes
-
getCreatureProbability
public float getCreatureProbability() -
playerSpawnFriendly
public boolean playerSpawnFriendly()
-