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_321531_, LevelReader p_321599_, BlockPos p_321663_) private static <T extends Mob>
voidregister
(EntityType<T> p_21755_, SpawnPlacementType p_321847_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_)
-
Field Details
-
DATA_BY_TYPE
-
-
Constructor Details
-
SpawnPlacements
public SpawnPlacements()
-
-
Method Details
-
register
private static <T extends Mob> void register(@Deprecated EntityType<T> p_21755_, SpawnPlacementType p_321847_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) -
getPlacementType
-
isSpawnPositionOk
public static boolean isSpawnPositionOk(EntityType<?> p_321531_, LevelReader p_321599_, BlockPos p_321663_) -
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()
-