Package net.minecraft.util
Class SpawnUtil
java.lang.Object
net.minecraft.util.SpawnUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
moveToPossibleSpawnPosition
(ServerLevel pLevel, int pYOffset, BlockPos.MutableBlockPos pPos, SpawnUtil.Strategy pStrategy) trySpawnMob
(EntityType<T> pEntityType, EntitySpawnReason pSpawnReason, ServerLevel pLevel, BlockPos pPos, int pAttempts, int pRange, int pYOffset, SpawnUtil.Strategy pStrategy, boolean pCheckCollision)
-
Constructor Details
-
SpawnUtil
public SpawnUtil()
-
-
Method Details
-
trySpawnMob
public static <T extends Mob> Optional<T> trySpawnMob(EntityType<T> pEntityType, EntitySpawnReason pSpawnReason, ServerLevel pLevel, BlockPos pPos, int pAttempts, int pRange, int pYOffset, SpawnUtil.Strategy pStrategy, boolean pCheckCollision) -
moveToPossibleSpawnPosition
private static boolean moveToPossibleSpawnPosition(ServerLevel pLevel, int pYOffset, BlockPos.MutableBlockPos pPos, SpawnUtil.Strategy pStrategy)
-