Interface DragonTransportService


public interface DragonTransportService
Dragon-bus spawning, flight/passenger queries, endpoint chunks, and glider deployment.

Every method that touches entities, worlds, or endpoint chunk state must be called on the Bukkit main thread. That includes getFlight(UUID) and getFlights(), which read live chunk load and plugin-ticket state for each route endpoint.

Since:
1.6.0
  • Method Details

    • spawn

      @NotNull @NotNull UUID spawn(@NotNull @NotNull Collection<? extends org.bukkit.entity.Player> passengers, @NotNull @NotNull org.bukkit.Location start, @NotNull @NotNull org.bukkit.Location destination)
    • stop

      boolean stop(@NotNull @NotNull UUID dragonId)
    • stopAll

      int stopAll()
    • getActiveCount

      int getActiveCount()
    • getActiveIds

      @NotNull @NotNull Set<UUID> getActiveIds()
    • isActive

      boolean isActive(@NotNull @NotNull UUID dragonId)
    • getFlight

      @NotNull @NotNull Optional<DragonFlight> getFlight(@NotNull @NotNull UUID dragonId)
    • getFlights

      @NotNull @NotNull Collection<DragonFlight> getFlights()
    • getDragon

      @NotNull @NotNull Optional<org.bukkit.entity.EnderDragon> getDragon(@NotNull @NotNull UUID dragonId)
    • getPassengers

      @NotNull @NotNull Set<UUID> getPassengers(@NotNull @NotNull UUID dragonId)
    • hasArrived

      boolean hasArrived(@NotNull @NotNull UUID dragonId)
    • isMatrixGlidersAvailable

      boolean isMatrixGlidersAvailable()
    • deployGlider

      boolean deployGlider(@NotNull @NotNull org.bukkit.entity.Player player)