Class PassengerUtils

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

public abstract class PassengerUtils extends Object
  • Method Details

    • getPassenger

      public static org.bukkit.entity.Entity[] getPassenger(org.bukkit.entity.Entity e)
    • addPassenger

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

      public static void removePassenger(org.bukkit.entity.Entity vehicle, org.bukkit.entity.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