Contents
Class PortalSpawnFinder
java.lang.Object
com.hypixel.hytale.builtin.portals.ui.PortalSpawnFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Transform> computeSpawnTransform(World world, List<org.joml.Vector3d> hintedSpawns) Finds a spawn transform for a portal world, ensuring the candidate sections are loaded first.
-
Constructor Details
-
PortalSpawnFinder
public PortalSpawnFinder()
-
-
Method Details
-
computeSpawnTransform
@Nonnull public static CompletableFuture<Transform> computeSpawnTransform(@Nonnull World world, @Nonnull List<org.joml.Vector3d> hintedSpawns) Finds a spawn transform for a portal world, ensuring the candidate sections are loaded first.A freshly created instance world is not guaranteed to have its candidate spawn sections resident yet. The synchronous section lookups in the search below return nothing for an unloaded section, so without loading them first the search finds no spawn at all.
- Returns:
- a future completing with a spawn transform, or
nullif no walkable spot was found.
-