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 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

      @Deprecated(since="1.8.0") boolean isMatrixGlidersAvailable()
      The 1.6.0 name of isGliderDeploymentAvailable(), from when gliders came from the separate Matrix Gliders plugin. Gliders are built into Zentrix now; this returns exactly what isGliderDeploymentAvailable() does and checks no external plugin.
    • isGliderDeploymentAvailable

      default boolean isGliderDeploymentAvailable()
      Whether deployGlider(Player) can open a glider on this server.

      Deploying through this service is a Premium feature: it is false on the free edition, where gliding exists only as part of Zentrix's own dragon-bus and sky-drop flows. Gliders are built into Zentrix, so no other plugin is involved.

      Since:
      1.8.0
    • deployGlider

      boolean deployGlider(@NotNull @NotNull org.bukkit.entity.Player player)
      Opens a player's built-in glider where they are. Main thread only.
      Returns:
      whether the player glides now; always false while isGliderDeploymentAvailable() is false