Package net.minecraft.entity
Class EntitySpawnPlacementRegistry
- java.lang.Object
-
- net.minecraft.entity.EntitySpawnPlacementRegistry
-
public class EntitySpawnPlacementRegistry extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EntitySpawnPlacementRegistry.Entry
static interface
EntitySpawnPlacementRegistry.IPlacementPredicate<T extends Entity>
static class
EntitySpawnPlacementRegistry.PlacementType
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<EntityType<?>,EntitySpawnPlacementRegistry.Entry>
DATA_BY_TYPE
-
Constructor Summary
Constructors Constructor Description EntitySpawnPlacementRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Entity>
booleancheckSpawnRules(EntityType<T> p_223515_0_, IServerWorld p_223515_1_, SpawnReason p_223515_2_, BlockPos p_223515_3_, java.util.Random p_223515_4_)
static Heightmap.Type
getHeightmapType(EntityType<?> p_209342_0_)
static EntitySpawnPlacementRegistry.PlacementType
getPlacementType(EntityType<?> p_209344_0_)
static <T extends MobEntity>
voidregister(EntityType<T> p_209343_0_, EntitySpawnPlacementRegistry.PlacementType p_209343_1_, Heightmap.Type p_209343_2_, EntitySpawnPlacementRegistry.IPlacementPredicate<T> p_209343_3_)
-
-
-
Field Detail
-
DATA_BY_TYPE
private static final java.util.Map<EntityType<?>,EntitySpawnPlacementRegistry.Entry> DATA_BY_TYPE
-
-
Method Detail
-
register
public static <T extends MobEntity> void register(EntityType<T> p_209343_0_, EntitySpawnPlacementRegistry.PlacementType p_209343_1_, Heightmap.Type p_209343_2_, EntitySpawnPlacementRegistry.IPlacementPredicate<T> p_209343_3_)
-
getPlacementType
public static EntitySpawnPlacementRegistry.PlacementType getPlacementType(EntityType<?> p_209344_0_)
-
getHeightmapType
public static Heightmap.Type getHeightmapType(@Nullable EntityType<?> p_209342_0_)
-
checkSpawnRules
public static <T extends Entity> boolean checkSpawnRules(EntityType<T> p_223515_0_, IServerWorld p_223515_1_, SpawnReason p_223515_2_, BlockPos p_223515_3_, java.util.Random p_223515_4_)
-
-