Class PortalSpawnFinder

java.lang.Object
com.hypixel.hytale.builtin.portals.ui.PortalSpawnFinder

public final class PortalSpawnFinder extends Object
  • 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 null if no walkable spot was found.