Package net.minecraft.world.entity
Class SpawnPlacements
java.lang.Object
net.minecraft.world.entity.SpawnPlacements
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
-
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 SpawnPlacementType
getPlacementType
(EntityType<?> p_21753_) static boolean
isSpawnPositionOk
(EntityType<?> p_331487_, LevelReader p_329941_, BlockPos p_327899_) private static <T extends Mob>
voidregister
(EntityType<T> p_21755_, SpawnPlacementType p_331557_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) Deprecated.FORGE: use SpawnPlacementRegisterEvent to register and modify spawn placements
-
Field Details
-
DATA_BY_TYPE
-
-
Constructor Details
-
SpawnPlacements
public SpawnPlacements()
-
-
Method Details
-
register
private static <T extends Mob> void register(EntityType<T> p_21755_, SpawnPlacementType p_331557_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) Deprecated.FORGE: use SpawnPlacementRegisterEvent to register and modify spawn placements -
getPlacementType
-
isSpawnPositionOk
public static boolean isSpawnPositionOk(EntityType<?> p_331487_, LevelReader p_329941_, BlockPos p_327899_) -
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()
-