Package net.minecraft.world.entity
Class SpawnPlacements
java.lang.Object
net.minecraft.world.entity.SpawnPlacements
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity>
booleancheckSpawnRules
(EntityType<T> p_217075_, ServerLevelAccessor p_217076_, MobSpawnType p_217077_, BlockPos p_217078_, RandomSource p_217079_) static void
static Heightmap.Types
getHeightmapType
(EntityType<?> p_21766_) static SpawnPlacements.Type
getPlacementType
(EntityType<?> p_21753_) static <T extends Mob>
voidregister
(EntityType<T> p_21755_, SpawnPlacements.Type p_21756_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_)
-
Field Details
-
DATA_BY_TYPE
-
-
Constructor Details
-
SpawnPlacements
public SpawnPlacements()
-
-
Method Details
-
register
public static <T extends Mob> void register(@Deprecated EntityType<T> p_21755_, SpawnPlacements.Type p_21756_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) -
getPlacementType
-
getHeightmapType
-
checkSpawnRules
public static <T extends Entity> boolean checkSpawnRules(EntityType<T> p_217075_, ServerLevelAccessor p_217076_, MobSpawnType p_217077_, BlockPos p_217078_, RandomSource p_217079_) -
fireSpawnPlacementEvent
public static void fireSpawnPlacementEvent()
-