Class BaseVehicle
java.lang.Object
me.legofreak107.vehiclesplus.vehicles.vehicles.objects.BaseVehicle
- All Implemented Interfaces:
IVehicle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe acceleration settings, max, min and upgrade stepsList<org.bukkit.Color>A list of colors the vehicle comes in on purchaseCan players exit this vehicle while moving (Recommended setting this to on when using Bukkit/Spigot)getDrift()Can this vehicle driftExhaust settingsThe fuel settingsThe fuel tank settings, max, min and upgrade stepsThe vehicles healthHitbox settings of the vehicleHorn settingsgetName()The name of the vehiclegetOwner()A list of vehicle parts (Wheels, Seats)getPrice()The vehicle price, when set to 0 it will not load in the shopThe speed settings, max, min and upgrade stepsSteering settingsTrunk size of the vehicle.The turning radius settings, max, min and upgrade stepsThe type of the vehiclevoidremoveVehicle(org.bukkit.entity.Player player) voidvoidsetAccelerationSettings(StorageUpgradeable accelerationSettings) The acceleration settings, max, min and upgrade stepsvoidsetBaseColorList(List<org.bukkit.Color> baseColorList) A list of colors the vehicle comes in on purchasevoidsetCanExitWhileMoving(Boolean canExitWhileMoving) Can players exit this vehicle while moving (Recommended setting this to on when using Bukkit/Spigot)voidCan this vehicle driftvoidsetExhaustSettings(StorageSmoke exhaustSettings) Exhaust settingsvoidsetFuelSettings(StorageFuel fuelSettings) The fuel settingsvoidsetFuelTankSettings(StorageUpgradeable fuelTankSettings) The fuel tank settings, max, min and upgrade stepsvoidThe vehicles healthvoidsetHitbox(StorageHitbox hitbox) Hitbox settings of the vehiclevoidsetHornSettings(StorageHorn hornSettings) Horn settingsvoidThe name of the vehiclevoidsetPartList(List<Part> partList) A list of vehicle parts (Wheels, Seats)voidThe vehicle price, when set to 0 it will not load in the shopvoidsetSpeedSettings(StorageUpgradeable speedSettings) The speed settings, max, min and upgrade stepsvoidsetSteeringType(Boolean steeringType) Steering settingsvoidsetTrunkSize(Integer trunkSize) Trunk size of the vehicle.voidsetTurningRadiusSettings(StorageUpgradeable turningRadiusSettings) The turning radius settings, max, min and upgrade stepsvoidsetVehicleType(String vehicleType) The type of the vehicle
-
Constructor Details
-
BaseVehicle
public BaseVehicle()
-
-
Method Details
-
getInfoList
-
saveVehicle
public void saveVehicle()- Specified by:
saveVehiclein interfaceIVehicle
-
removeVehicle
public void removeVehicle(org.bukkit.entity.Player player) - Specified by:
removeVehiclein interfaceIVehicle
-
getOwner
-
getName
The name of the vehicle -
getVehicleType
The type of the vehicle -
getBaseColorList
A list of colors the vehicle comes in on purchase -
getPartList
A list of vehicle parts (Wheels, Seats) -
getSpeedSettings
The speed settings, max, min and upgrade steps -
getFuelTankSettings
The fuel tank settings, max, min and upgrade steps -
getTurningRadiusSettings
The turning radius settings, max, min and upgrade steps -
getAccelerationSettings
The acceleration settings, max, min and upgrade steps -
getHornSettings
Horn settings -
getDrift
Can this vehicle drift -
getExhaustSettings
Exhaust settings -
getCanExitWhileMoving
Can players exit this vehicle while moving (Recommended setting this to on when using Bukkit/Spigot) -
getPrice
The vehicle price, when set to 0 it will not load in the shop -
getFuelSettings
The fuel settings -
getHealth
The vehicles health -
getTrunkSize
Trunk size of the vehicle. When set to 0 it will not have a trunk -
getHitbox
Hitbox settings of the vehicle -
getSteeringType
Steering settingsTrue = Realistic False = Instant
-
setName
The name of the vehicle -
setVehicleType
The type of the vehicle -
setBaseColorList
A list of colors the vehicle comes in on purchase -
setPartList
A list of vehicle parts (Wheels, Seats) -
setSpeedSettings
The speed settings, max, min and upgrade steps -
setFuelTankSettings
The fuel tank settings, max, min and upgrade steps -
setTurningRadiusSettings
The turning radius settings, max, min and upgrade steps -
setAccelerationSettings
The acceleration settings, max, min and upgrade steps -
setHornSettings
Horn settings -
setDrift
Can this vehicle drift -
setExhaustSettings
Exhaust settings -
setCanExitWhileMoving
Can players exit this vehicle while moving (Recommended setting this to on when using Bukkit/Spigot) -
setPrice
The vehicle price, when set to 0 it will not load in the shop -
setFuelSettings
The fuel settings -
setHealth
The vehicles health -
setTrunkSize
Trunk size of the vehicle. When set to 0 it will not have a trunk -
setHitbox
Hitbox settings of the vehicle -
setSteeringType
Steering settingsTrue = Realistic False = Instant
-