Class VehicleFuel
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVSubCommand
nl.mtvehicles.core.commands.vehiclesubs.VehicleFuel
/vehicle fuel - open a GUI with different jerrycans.
-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVSubCommand
arguments, isPlayer, player, sender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute()
Code executed by a subcommandstatic org.bukkit.inventory.ItemStack
jerrycanItem(int maxFuel, int currentFuel)
Get a jerrycan itemMethods inherited from class nl.mtvehicles.core.infrastructure.models.MTVSubCommand
checkPermission, getVehicle, isHoldingVehicle, isPlayerCommand, onExecute, sendMessage, sendMessage, setPlayerCommand
-
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 classMTVSubCommand
- 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 jerrycancurrentFuel
- Current amount of fuel (should not be higher than maxFuel)- Returns:
- Jerrycan
-