Class PassengerUtils

java.lang.Object
ch.njol.skript.bukkitutil.PassengerUtils

public abstract class PassengerUtils extends Object
  • Method Details

    • getPassenger

      public static Entity[] getPassenger(Entity e)
    • addPassenger

      public static void addPassenger(Entity vehicle, Entity passenger)
      Add the passenger to the vehicle
      Parameters:
      vehicle - - The entity vehicle
      passenger - - The entity passenger
    • removePassenger

      public static void removePassenger(Entity vehicle, Entity passenger)
      Remove the passenger from the vehicle.
      Parameters:
      vehicle - - The entity vehicle
      passenger - - The entity passenger
    • hasMultiplePassenger

      public static boolean hasMultiplePassenger()
      Returns:
      True if it supports multiple passengers