Class VehicleRefuelEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class VehicleRefuelEvent extends CancellableVehicleEvent<SpawnedVehicle>
This event gets fired when a SpawnedVehicle gets destroyed.
  • Constructor Details

    • VehicleRefuelEvent

      public VehicleRefuelEvent(SpawnedVehicle vehicle, String type, double amount)
      Construct a new VehicleRefuelEvent.
      Parameters:
      vehicle - The SpawnedVehicle that is being refueled.
      type - The type of fuel used to refuel the vehicle.
      amount - The amount of fuel added to the vehicle.
  • Method Details

    • getType

      public String getType()
      The type of fuel used to refuel the vehicle.
    • getAmount

      public double getAmount()
      The amount of fuel added to the vehicle.