TransportModule

public final class TransportModule implements Listener, AutoCloseable

Follows authored curves with configured mounts. Map makers own path clearance.

Functions

Link copied to clipboard
public void cancel(Player player)
Link copied to clipboard
public void close()
Link copied to clipboard
public void destroy(MatchDestroyEvent event)
Link copied to clipboard
Link copied to clipboard
public static TransportModule get()
Link copied to clipboard
public static void initialize()
Link copied to clipboard
public static boolean isInTransit(Player player)
Link copied to clipboard
public void join(PlayerJoinEvent event)
Link copied to clipboard
public void keepSeated(EntityDismountEvent event)
Refuses only the rider's own sneak dismount mid-flight.
Link copied to clipboard
public void leave(MatchLeaveEvent event)
Link copied to clipboard
public void moveDuringCountdown(PlayerMoveEvent event)
Link copied to clipboard
Link copied to clipboard
public void openDestinations(Player player, NPCEntity npc)
Link copied to clipboard
public void openFlightPoint(Player player, Supplier<Location> anchor, String networkId, String node, String destination)
Opens a flight point's menu, or flies straight to its fixed destination.
public void openFlightPoint(Player player, Supplier<Location> anchor, String networkId, String node, String destination, Location departureAnchor, double departureRadius)
As above, but the flight's countdown, direct or chosen from the menu, only cancels once the player leaves the departure zone, so a player settling into or nudged inside a portal keeps their seat.
Link copied to clipboard
public void quit(PlayerQuitEvent event)
Link copied to clipboard
public void releaseOnTeleport(PlayerTeleportEvent event)
Teleports fire before their dismount.
Link copied to clipboard
public static void shutdown()
Link copied to clipboard
public boolean start(Player player, TransportRoute route)
Link copied to clipboard
public boolean startFlight(Player player, String networkId, String fromNode, String toNode)
Flies from one network node to a destination, checking the departure and destination permissions.
Link copied to clipboard
public static boolean startRoute(Player player, String routeId)
A server-thread entry point for authored prop scripts.