Class VehicleFuel

java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVehicleSubCommand
nl.mtvehicles.core.commands.vehiclesubs.VehicleFuel

public class VehicleFuel extends MTVehicleSubCommand
/vehicle fuel - open a GUI with different jerrycans.
  • Constructor Details

    • VehicleFuel

      public VehicleFuel()
  • Method Details

    • execute

      public boolean execute()
      Description copied from class: MTVehicleSubCommand
      Code executed by a subcommand
      Specified by:
      execute in class MTVehicleSubCommand
      Returns:
      True if successful
    • jerrycanItem

      public static org.bukkit.inventory.ItemStack jerrycanItem(int maxFuel, int currentFuel)
      Get a jerrycan item
      Parameters:
      maxFuel - Size of the jerrycan
      currentFuel - Current amount of fuel (should not be higher than maxFuel)
      Returns:
      Jerrycan