Klasse SafeTeleportService
java.lang.Object
de.delinkedde.areashopreborn.application.SafeTeleportService
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.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSafeTeleportService(ThreadBridge threads, int horizontalRadius, int verticalRadius) Creates the safe teleport resolver. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCompletableFuture<org.bukkit.Location> resolve(TeleportDestination destination, boolean bypassSafety) Resolves a safe destination or returns the preferred point when safety is bypassed.
-
Konstruktordetails
-
SafeTeleportService
Creates the safe teleport resolver.- Parameter:
threads- server-thread bridgehorizontalRadius- maximum horizontal search distanceverticalRadius- 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 boundsbypassSafety- whether block safety checks may be skipped- Gibt zurück:
- future containing a loaded-world Bukkit location
-