Class Vehicles.VehicleDefinition

java.lang.Object
net.risingworld.api.definitions.Vehicles.VehicleDefinition
Enclosing class:
Vehicles

public final class Vehicles.VehicleDefinition extends Object
  • Field Details

    • id

      public short id
      Internal type ID of the vehicle
    • name

      public String name
      Name of the vehicle
    • type

      public Vehicles.Type type
      Vehicle type
    • category

      public Vehicles.Category category
      Vehicle category
    • extent

      public Vehicles.Size extent
      Vehicle size / extent
    • material

      public Vehicles.Material material
      Main material the vehicle consists of
    • era

      public Era era
      Era/age this vehicle belongs to
    • strength

      public short strength
      Vehicle strength (hit points)
    • wreckstrength

      public short wreckstrength
      Vehicle wreck strength (hit points)
    • seats

      public int seats
      Number of seats in this vehicle. Is greater or equal to 1
    • driverhand

      public Vehicles.Hand driverhand
      Determines which hand is being used on the driver seat to operate the vehicle
    • hasengine

      public boolean hasengine
      Determines whether or not this vehicle has an engine
    • requiresfuel

      public boolean requiresfuel
      Determines whether or not this vehicle requires fuel
    • fuelconsumption

      public float fuelconsumption
      If vehicle has an engine and requires fuel, this is the optional fuel consumption
    • gears

      public int gears
      If vehicle has a transmission, this is the number of forward gears
    • hasreversegear

      public boolean hasreversegear
      If vehicle has a transmission, this determines if the vehicle also has a reverse gear
    • hasneutralgear

      public boolean hasneutralgear
      If vehicle has a transmission, this determines if the vehicle also has a neutral gear
    • canswim

      public boolean canswim
      Determines whether or not the vehicle can swim in water
    • mincolorrange

      public float mincolorrange
      Minimum color (when painting vehicle)
    • maxcolorrange

      public float maxcolorrange
      Maximum color (when painting vehicle)
    • assetpath

      public String assetpath
      Asset path to the vehicle prefab
    • wreckassetpath

      public String wreckassetpath
      Asset path to the vehicle wreck prefab (if it has any)
    • debrisassetpath

      public String debrisassetpath
      Asset path for optional debris (spawns parallel to the wreck asset)
    • wreckdebrisassetpath

      public String wreckdebrisassetpath
      Asset path for optional wreck debris (spawns after destroying the wreck)
    • requiredcomponents

      public Vehicles.Component[] requiredcomponents
      Required components for the vehicle to be considered "ready"
    • constructionstages

      public int constructionstages
      Number of construction stages
  • Method Details

    • synchronize

      public void synchronize()