Class VehicleData

java.lang.Object
nl.mtvehicles.core.infrastructure.vehicle.VehicleData

public class VehicleData extends Object
Maps containing vehicles' data
  • Field Details

  • Method Details

    • isTrunkViewer

      public static boolean isTrunkViewer(String licensePlate, org.bukkit.entity.Player player)
      Check if a player has an opened trunk
      Parameters:
      licensePlate - Vehicle's license plate (this vehicle's trunk is being opened)
      player - Player
      Since:
      2.5.1
    • trunkViewerAdd

      public static boolean trunkViewerAdd(String licensePlate, org.bukkit.entity.Player player)
      Add a player to list of players who have vehicle's trunk inventory opened
      Parameters:
      licensePlate - Vehicle's license plate
      player - Player who's being added to the set
      Returns:
      Returns false if player is already present in the set
      Since:
      2.5.1
    • trunkViewerRemove

      public static boolean trunkViewerRemove(String licensePlate, org.bukkit.entity.Player player)
      Remove a player from list of players who have vehicle's trunk inventory opened
      Parameters:
      licensePlate - Vehicle's license plate
      player - Player who's being removed from the set
      Returns:
      Returns false if player is not present in the set
      Since:
      2.5.1
    • getTrunkViewers

      public static Set<org.bukkit.entity.Player> getTrunkViewers(String licensePlate)
      Get a HashSet of all trunk viewers of a vehicle
      Parameters:
      licensePlate - Vehicle's license plate