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 Summary
Modifier and TypeMethodDescriptionbooleandeployGlider(@NotNull org.bukkit.entity.Player player) Opens a player's built-in glider where they are.int@NotNull Optional<org.bukkit.entity.EnderDragon> @NotNull Optional<DragonFlight> @NotNull Collection<DragonFlight> getPassengers(@NotNull UUID dragonId) booleanhasArrived(@NotNull UUID dragonId) booleandefault booleanWhetherdeployGlider(Player)can open a glider on this server.booleanDeprecated.@NotNull UUIDspawn(@NotNull Collection<? extends org.bukkit.entity.Player> passengers, @NotNull org.bukkit.Location start, @NotNull org.bukkit.Location destination) booleanintstopAll()
-
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
-
stopAll
int stopAll() -
getActiveCount
int getActiveCount() -
getActiveIds
-
isActive
-
getFlight
-
getFlights
-
getDragon
-
getPassengers
-
hasArrived
-
isMatrixGlidersAvailable
Deprecated.since 1.8.0; useisGliderDeploymentAvailable(), orPlatformService.getCapability(String)withZentrixCapabilities.GLIDER_VISUALSto learn why it is notThe 1.6.0 name ofisGliderDeploymentAvailable(), from when gliders came from the separate Matrix Gliders plugin. Gliders are built into Zentrix now; this returns exactly whatisGliderDeploymentAvailable()does and checks no external plugin. -
isGliderDeploymentAvailable
default boolean isGliderDeploymentAvailable()WhetherdeployGlider(Player)can open a glider on this server.Deploying through this service is a Premium feature: it is
falseon 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
falsewhileisGliderDeploymentAvailable()isfalse
-
isGliderDeploymentAvailable(), orPlatformService.getCapability(String)withZentrixCapabilities.GLIDER_VISUALSto learn why it is not