Class VehicleFuel

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

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

    • VehicleFuel

      public VehicleFuel()
  • Method Details

    • execute

      public boolean execute()
      Description copied from class: MTVSubCommand
      Code executed by a subcommand
      Specified by:
      execute in class MTVSubCommand
      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