Package net.minecraft.world.biome
Class MobSpawnInfo
- java.lang.Object
-
- net.minecraft.world.biome.MobSpawnInfo
-
public class MobSpawnInfo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MobSpawnInfo.Builder
static class
MobSpawnInfo.SpawnCosts
static class
MobSpawnInfo.Spawners
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.MapCodec<MobSpawnInfo>
CODEC
private java.util.Set<EntityType<?>>
costView
private float
creatureGenerationProbability
static MobSpawnInfo
EMPTY
static org.apache.logging.log4j.Logger
LOGGER
private java.util.Map<EntityType<?>,MobSpawnInfo.SpawnCosts>
mobSpawnCosts
private boolean
playerSpawnFriendly
private java.util.Map<EntityClassification,java.util.List<MobSpawnInfo.Spawners>>
spawners
private java.util.Set<EntityClassification>
typesView
-
Constructor Summary
Constructors Modifier Constructor Description private
MobSpawnInfo(float p_i241946_1_, java.util.Map<EntityClassification,java.util.List<MobSpawnInfo.Spawners>> p_i241946_2_, java.util.Map<EntityType<?>,MobSpawnInfo.SpawnCosts> p_i241946_3_, boolean p_i241946_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getCreatureProbability()
java.util.Set<EntityType<?>>
getEntityTypes()
java.util.List<MobSpawnInfo.Spawners>
getMobs(EntityClassification p_242559_1_)
MobSpawnInfo.SpawnCosts
getMobSpawnCost(EntityType<?> p_242558_1_)
java.util.Set<EntityClassification>
getSpawnerTypes()
boolean
playerSpawnFriendly()
-
-
-
Field Detail
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
EMPTY
public static final MobSpawnInfo EMPTY
-
CODEC
public static final com.mojang.serialization.MapCodec<MobSpawnInfo> CODEC
-
creatureGenerationProbability
private final float creatureGenerationProbability
-
spawners
private final java.util.Map<EntityClassification,java.util.List<MobSpawnInfo.Spawners>> spawners
-
mobSpawnCosts
private final java.util.Map<EntityType<?>,MobSpawnInfo.SpawnCosts> mobSpawnCosts
-
playerSpawnFriendly
private final boolean playerSpawnFriendly
-
typesView
private final java.util.Set<EntityClassification> typesView
-
costView
private final java.util.Set<EntityType<?>> costView
-
-
Constructor Detail
-
MobSpawnInfo
private MobSpawnInfo(float p_i241946_1_, java.util.Map<EntityClassification,java.util.List<MobSpawnInfo.Spawners>> p_i241946_2_, java.util.Map<EntityType<?>,MobSpawnInfo.SpawnCosts> p_i241946_3_, boolean p_i241946_4_)
-
-
Method Detail
-
getMobs
public java.util.List<MobSpawnInfo.Spawners> getMobs(EntityClassification p_242559_1_)
-
getSpawnerTypes
public java.util.Set<EntityClassification> getSpawnerTypes()
-
getMobSpawnCost
@Nullable public MobSpawnInfo.SpawnCosts getMobSpawnCost(EntityType<?> p_242558_1_)
-
getEntityTypes
public java.util.Set<EntityType<?>> getEntityTypes()
-
getCreatureProbability
public float getCreatureProbability()
-
playerSpawnFriendly
public boolean playerSpawnFriendly()
-
-