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, MobSpawnType pSpawnType, ServerLevel pLevel, BlockPos pPos, int pAttempts, int pSpread, int pYOffset, SpawnUtil.Strategy pStrategy)
-
Constructor Details
-
SpawnUtil
public SpawnUtil()
-
-
Method Details
-
trySpawnMob
public static <T extends Mob> Optional<T> trySpawnMob(EntityType<T> pEntityType, MobSpawnType pSpawnType, ServerLevel pLevel, BlockPos pPos, int pAttempts, int pSpread, int pYOffset, SpawnUtil.Strategy pStrategy) -
moveToPossibleSpawnPosition
private static boolean moveToPossibleSpawnPosition(ServerLevel pLevel, int pYOffset, BlockPos.MutableBlockPos pPos, SpawnUtil.Strategy pStrategy)
-