Class VehicleData
java.lang.Object
nl.mtvehicles.core.infrastructure.vehicle.VehicleData
Maps containing vehicles' data
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetRotationSpeed(String licensePlate) static DoublegetSpeed(@NotNull VehicleData.DataSpeed speedType, @NotNull String licensePlate) static Set<org.bukkit.entity.Player> getTrunkViewers(String licensePlate) Get a HashSet of all trunk viewers of a vehiclestatic booleanisTrunkViewer(String licensePlate, org.bukkit.entity.Player player) Check if a player has an opened trunkstatic booleanisVehicleDestroyed(String licensePlate) Check if a vehicle is destroyedstatic voidmarkVehicleAsDestroyed(String licensePlate) Mark a vehicle as destroyedstatic voidmarkVehicleAsRepaired(String licensePlate) Mark vehicle as repairedstatic voidsetRotationSpeed(String licensePlate, Integer value) static voidsetSpeed(@NotNull VehicleData.DataSpeed speedType, @NotNull String licensePlate, @NotNull Double value) static booleantrunkViewerAdd(String licensePlate, org.bukkit.entity.Player player) Add a player to list of players who have vehicle's trunk inventory openedstatic booleantrunkViewerRemove(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:
-
speedhigh
Deprecated. -
maxheight
-
mainx
-
mainy
-
mainz
-
seatsize
-
seatx
-
seaty
-
seatz
-
wiekenx
-
wiekeny
-
wiekenz
-
type
-
fuel
- See Also:
-
fuelUsage
-
autostand
-
autostand2
-
lastUsage
-
fallDamage
-
frictionBlocked
-
brakingBlocked
-
lastRegions
-
destroyedVehicles
-
-
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
-
getSpeed
public static Double getSpeed(@NotNull @NotNull VehicleData.DataSpeed speedType, @NotNull @NotNull String licensePlate) -
getRotationSpeed
-
setSpeed
public static void setSpeed(@NotNull @NotNull VehicleData.DataSpeed speedType, @NotNull @NotNull String licensePlate, @NotNull @NotNull Double value) -
setRotationSpeed
-
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
falseif 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
falseif 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
-
markVehicleAsDestroyed
Mark a vehicle as destroyed- Parameters:
licensePlate-
-
markVehicleAsRepaired
Mark vehicle as repaired- Parameters:
licensePlate-
-
isVehicleDestroyed
Check if a vehicle is destroyed- Parameters:
licensePlate-- Returns:
- Boolean
-