Class VehicleData
java.lang.Object
nl.mtvehicles.core.infrastructure.vehicle.VehicleData
Maps containing vehicles' data
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.bukkit.entity.Player>
getTrunkViewers(String licensePlate)
Get a HashSet of all trunk viewers of a vehiclestatic boolean
isTrunkViewer(String licensePlate, org.bukkit.entity.Player player)
Check if a player has an opened trunkstatic boolean
trunkViewerAdd(String licensePlate, org.bukkit.entity.Player player)
Add a player to list of players who have vehicle's trunk inventory openedstatic boolean
trunkViewerRemove(String licensePlate, org.bukkit.entity.Player player)
Remove a player from list of players who have vehicle's trunk inventory opened
-
Field Details
-
speed
- See Also:
Vehicle.getCurrentSpeed()
-
speedhigh
-
maxheight
-
mainx
-
mainy
-
mainz
-
seatsize
-
seatx
-
seaty
-
seatz
-
wiekenx
-
wiekeny
-
wiekenz
-
type
-
fuel
- See Also:
Vehicle.getCurrentFuel()
-
fuelUsage
-
autostand
-
autostand2
-
lastUsage
-
fallDamage
-
RotationSpeed
-
MaxSpeed
-
AccelerationSpeed
-
BrakingSpeed
-
MaxSpeedBackwards
-
FrictionSpeed
-
lastRegions
-
-
Method Details
-
isTrunkViewer
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
Add a player to list of players who have vehicle's trunk inventory opened- Parameters:
licensePlate
- Vehicle's license plateplayer
- Player who's being added to the set- Returns:
- Returns
false
if player is already present in the set - Since:
- 2.5.1
-
trunkViewerRemove
Remove a player from list of players who have vehicle's trunk inventory opened- Parameters:
licensePlate
- Vehicle's license plateplayer
- Player who's being removed from the set- Returns:
- Returns
false
if player is not present in the set - Since:
- 2.5.1
-
getTrunkViewers
Get a HashSet of all trunk viewers of a vehicle- Parameters:
licensePlate
- Vehicle's license plate
-