Package net.risingworld.api.definitions
Class Vehicles.VehicleDefinition
java.lang.Object
net.risingworld.api.definitions.Vehicles.VehicleDefinition
- Enclosing class:
Vehicles
-
Field Summary
FieldsModifier and TypeFieldDescriptionAsset path to the vehicle prefabbooleanDetermines whether or not the vehicle can swim in waterVehicle categoryintNumber of construction stagesAsset path for optional debris (spawns parallel to the wreck asset)Determines which hand is being used on the driver seat to operate the vehicleEra/age this vehicle belongs toVehicle size / extentfloatIf vehicle has an engine and requires fuel, this is the optional fuel consumptionintIf vehicle has a transmission, this is the number of forward gearsbooleanDetermines whether or not this vehicle has an enginebooleanIf vehicle has a transmission, this determines if the vehicle also has a neutral gearbooleanIf vehicle has a transmission, this determines if the vehicle also has a reverse gearshortInternal type ID of the vehicleMain material the vehicle consists offloatMaximum color (when painting vehicle)floatMinimum color (when painting vehicle)Name of the vehicleRequired components for the vehicle to be considered "ready"booleanDetermines whether or not this vehicle requires fuelintNumber of seats in this vehicle.shortVehicle strength (hit points)Vehicle typeAsset path to the vehicle wreck prefab (if it has any)Asset path for optional wreck debris (spawns after destroying the wreck)shortVehicle wreck strength (hit points) -
Method Summary
-
Field Details
-
id
public short idInternal type ID of the vehicle -
name
Name of the vehicle -
type
Vehicle type -
category
Vehicle category -
extent
Vehicle size / extent -
material
Main material the vehicle consists of -
era
Era/age this vehicle belongs to -
strength
public short strengthVehicle strength (hit points) -
wreckstrength
public short wreckstrengthVehicle wreck strength (hit points) -
seats
public int seatsNumber of seats in this vehicle. Is greater or equal to 1 -
driverhand
Determines which hand is being used on the driver seat to operate the vehicle -
hasengine
public boolean hasengineDetermines whether or not this vehicle has an engine -
requiresfuel
public boolean requiresfuelDetermines whether or not this vehicle requires fuel -
fuelconsumption
public float fuelconsumptionIf vehicle has an engine and requires fuel, this is the optional fuel consumption -
gears
public int gearsIf vehicle has a transmission, this is the number of forward gears -
hasreversegear
public boolean hasreversegearIf vehicle has a transmission, this determines if the vehicle also has a reverse gear -
hasneutralgear
public boolean hasneutralgearIf vehicle has a transmission, this determines if the vehicle also has a neutral gear -
canswim
public boolean canswimDetermines whether or not the vehicle can swim in water -
mincolorrange
public float mincolorrangeMinimum color (when painting vehicle) -
maxcolorrange
public float maxcolorrangeMaximum color (when painting vehicle) -
assetpath
Asset path to the vehicle prefab -
wreckassetpath
Asset path to the vehicle wreck prefab (if it has any) -
debrisassetpath
Asset path for optional debris (spawns parallel to the wreck asset) -
wreckdebrisassetpath
Asset path for optional wreck debris (spawns after destroying the wreck) -
requiredcomponents
Required components for the vehicle to be considered "ready" -
constructionstages
public int constructionstagesNumber of construction stages
-
-
Method Details
-
synchronize
public void synchronize()
-