java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.Fuel
All Implemented Interfaces:
Setting

public class Fuel extends Object implements Setting
The Fuel setting.
  • Constructor Details

    • Fuel

      public Fuel(String typeId, double usage)
      Creates a new Fuel instance.
      Parameters:
      typeId - The type of fuel that this vehicle uses.
      usage - The fuel usage.
    • Fuel

      public Fuel()
  • Method Details

    • getType

      public Optional<FuelType> getType()
      Get the type of fuel that this vehicle uses.
      Returns:
      The type of fuel that this vehicle uses.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTypeId

      public String getTypeId()
      The type of fuel that this vehicle uses.
    • getUsage

      public double getUsage()
      The fuel usage.
    • setTypeId

      public void setTypeId(String typeId)
      The type of fuel that this vehicle uses.
    • setUsage

      public void setUsage(double usage)
      The fuel usage.