MountPointManager

public class MountPointManager

Manages all mount seats for a single modeled entity. Tick task only runs while at least one seat is occupied.

Constructors

Link copied to clipboard
public void MountPointManager(Skeleton skeleton, ModeledEntity modeledEntity)

Properties

Link copied to clipboard
public final List<MountSeat> seats

Functions

Link copied to clipboard
public void cleanup()
Cleans up all seats and stops the tick task.
Link copied to clipboard
public List<MountSeat> getSeats()
Link copied to clipboard
public void handleDismount(Player player, Entity vehicle)
Handles a player dismount.
Link copied to clipboard
public boolean hasMountPoints()
Returns whether this manager has any mount points defined.
Link copied to clipboard
public boolean isMountVehicle(Entity vehicle)
Checks if the given entity is the seat-vehicle of any of this manager's seats.
Link copied to clipboard
public boolean tryMount(Player player)
Attempts to mount the player onto the first available seat.