Package net.risingworld.api.definitions
Klasse Vehicles.VehicleDefinition
java.lang.Object
net.risingworld.api.definitions.Vehicles.VehicleDefinition
- Umschließende Klasse:
Vehicles
-
Feldübersicht
Modifizierer und TypFeldBeschreibungAsset path to the vehicle prefabboolean
Determines whether or not the vehicle can swim in waterVehicle categoryint
Number 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 vehicleVehicle size / extentfloat
If vehicle has an engine and requires fuel, this is the optional fuel consumptionint
If vehicle has a transmission, this is the number of forward gearsboolean
Determines whether or not this vehicle has an engineboolean
If vehicle has a transmission, this determines if the vehicle also has a neutral gearboolean
If vehicle has a transmission, this determines if the vehicle also has a reverse gearshort
Internal type ID of the vehicleMain material the vehicle consists offloat
Maximum color (when painting vehicle)float
Minimum color (when painting vehicle)Name of the vehicleRequired components for the vehicle to be considered "ready"boolean
Determines whether or not this vehicle requires fuelint
Number of seats in this vehicle.short
Vehicle 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)short
Vehicle wreck strength (hit points) -
Methodenübersicht
-
Felddetails
-
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 -
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
-
-
Methodendetails
-
synchronize
public void synchronize()
-