Class VehicleRefuelEvent
java.lang.Object
org.bukkit.event.Event
nl.sbdeveloper.vehiclesplus.api.events.Event
nl.sbdeveloper.vehiclesplus.api.events.VehicleEvent<SpawnedVehicle>
nl.sbdeveloper.vehiclesplus.api.events.CancellableVehicleEvent<SpawnedVehicle>
nl.sbdeveloper.vehiclesplus.api.events.impl.VehicleRefuelEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
This event gets fired when a
SpawnedVehicle
gets destroyed.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionVehicleRefuelEvent
(SpawnedVehicle vehicle, String type, double amount) Construct a newVehicleRefuelEvent
. -
Method Summary
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.CancellableVehicleEvent
isCancelled, setCancelled
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.VehicleEvent
getVehicle
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.Event
getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
VehicleRefuelEvent
Construct a newVehicleRefuelEvent
.- Parameters:
vehicle
- TheSpawnedVehicle
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
The type of fuel used to refuel the vehicle. -
getAmount
public double getAmount()The amount of fuel added to the vehicle.
-