Package ch.njol.skript.bukkitutil
Class PassengerUtils
java.lang.Object
ch.njol.skript.bukkitutil.PassengerUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPassenger
(org.bukkit.entity.Entity vehicle, org.bukkit.entity.Entity passenger) Add the passenger to the vehiclestatic org.bukkit.entity.Entity[]
getPassenger
(org.bukkit.entity.Entity e) static boolean
static void
removePassenger
(org.bukkit.entity.Entity vehicle, org.bukkit.entity.Entity passenger) Remove the passenger from the vehicle.
-
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 vehiclepassenger
- - 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 vehiclepassenger
- - The entity passenger
-
hasMultiplePassenger
public static boolean hasMultiplePassenger()- Returns:
- True if it supports multiple passengers
-