Package net.minecraft.entity
Class EntitySpawnPlacementRegistry
java.lang.Object
net.minecraft.entity.EntitySpawnPlacementRegistry
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<EntityType<?>,
EntitySpawnPlacementRegistry.Entry> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity>
booleancheckSpawnRules
(EntityType<T> p_223515_0_, IServerWorld p_223515_1_, SpawnReason p_223515_2_, BlockPos p_223515_3_, Random p_223515_4_) static Heightmap.Type
getHeightmapType
(EntityType<?> p_209342_0_) 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 Details
-
DATA_BY_TYPE
-
-
Constructor Details
-
EntitySpawnPlacementRegistry
public EntitySpawnPlacementRegistry()
-
-
Method Details
-
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
-
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_, Random p_223515_4_)
-