Class PaperImplementation
java.lang.Object
com.meteordevelopments.duels.api.folialib.impl.SpigotImplementation
com.meteordevelopments.duels.api.folialib.impl.PaperImplementation
- All Implemented Interfaces:
PlatformScheduler,ServerImplementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionteleportAsync(org.bukkit.entity.Entity entity, org.bukkit.Location location) Don't need to override much, since we're extendingSpigotImplementationteleportAsync(org.bukkit.entity.Entity entity, org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) Teleport an entity to a location async with a causeMethods inherited from class com.meteordevelopments.duels.api.folialib.impl.SpigotImplementation
cancelAllTasks, cancelTask, getAllServerTasks, getAllTasks, getPlayer, getPlayer, getPlayerExact, isGlobalTickThread, isOwnedByCurrentRegion, isOwnedByCurrentRegion, isOwnedByCurrentRegion, isOwnedByCurrentRegion, isOwnedByCurrentRegion, isOwnedByCurrentRegion, runAsync, runAtEntity, runAtEntityLater, runAtEntityLater, runAtEntityLater, runAtEntityLater, runAtEntityLater, runAtEntityLater, runAtEntityTimer, runAtEntityTimer, runAtEntityTimer, runAtEntityTimer, runAtEntityTimer, runAtEntityTimer, runAtEntityWithFallback, runAtLocation, runAtLocationLater, runAtLocationLater, runAtLocationLater, runAtLocationLater, runAtLocationTimer, runAtLocationTimer, runAtLocationTimer, runAtLocationTimer, runLater, runLater, runLater, runLater, runLaterAsync, runLaterAsync, runLaterAsync, runLaterAsync, runNextTick, runTimer, runTimer, runTimer, runTimer, runTimerAsync, runTimerAsync, runTimerAsync, runTimerAsync, wrapTask
-
Constructor Details
-
PaperImplementation
-
-
Method Details
-
teleportAsync
public CompletableFuture<Boolean> teleportAsync(org.bukkit.entity.Entity entity, org.bukkit.Location location) Don't need to override much, since we're extendingSpigotImplementation- Specified by:
teleportAsyncin interfaceServerImplementation- Overrides:
teleportAsyncin classSpigotImplementation- Parameters:
entity- Entity to teleportlocation- Location to teleport to- Returns:
- Future when the teleport is completed or failed
-
teleportAsync
public CompletableFuture<Boolean> teleportAsync(org.bukkit.entity.Entity entity, org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) Description copied from interface:ServerImplementationTeleport an entity to a location async with a cause- Specified by:
teleportAsyncin interfaceServerImplementation- Overrides:
teleportAsyncin classSpigotImplementation- Parameters:
entity- Entity to teleportlocation- Location to teleport tocause- Cause of the teleport- Returns:
- Future when the teleport is completed or failed
-