Klasse SafeTeleportService

java.lang.Object
de.delinkedde.areashopreborn.application.SafeTeleportService

public final class SafeTeleportService extends Object
Resolves safe Bukkit teleport locations without synchronously loading destination chunks.

Chunk requests use Paper's asynchronous API. Block inspection is transferred back to the server thread and constrained to the estate bounds plus configured horizontal and vertical search distances.

  • Konstruktordetails

    • SafeTeleportService

      public SafeTeleportService(ThreadBridge threads, int horizontalRadius, int verticalRadius)
      Creates the safe teleport resolver.
      Parameter:
      threads - server-thread bridge
      horizontalRadius - maximum horizontal search distance
      verticalRadius - maximum vertical search distance
  • Methodendetails

    • resolve

      public CompletableFuture<org.bukkit.Location> resolve(TeleportDestination destination, boolean bypassSafety)
      Resolves a safe destination or returns the preferred point when safety is bypassed.
      Parameter:
      destination - preferred point and estate bounds
      bypassSafety - whether block safety checks may be skipped
      Gibt zurück:
      future containing a loaded-world Bukkit location