Class VehiclePreSpawnEvent
java.lang.Object
org.bukkit.event.Event
nl.sbdeveloper.vehiclesplus.api.events.Event
nl.sbdeveloper.vehiclesplus.api.events.VehicleEvent<StorageVehicle>
nl.sbdeveloper.vehiclesplus.api.events.CancellableVehicleEvent<StorageVehicle>
nl.sbdeveloper.vehiclesplus.api.events.impl.VehiclePreSpawnEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
This event gets fired when a vehicle will be spawned.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionVehiclePreSpawnEvent(StorageVehicle vehicle) Construct a newVehiclePreSpawnEvent.VehiclePreSpawnEvent(StorageVehicle vehicle, org.bukkit.entity.Player spawner) Construct a newVehiclePreSpawnEvent. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.PlayerThePlayerwho spawns the vehicle, or null if not spawned by a player.Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.CancellableVehicleEvent
isCancelled, setCancelledMethods inherited from class nl.sbdeveloper.vehiclesplus.api.events.VehicleEvent
getVehicleMethods inherited from class nl.sbdeveloper.vehiclesplus.api.events.Event
getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
VehiclePreSpawnEvent
Construct a newVehiclePreSpawnEvent.- Parameters:
vehicle- TheStorageVehicleinvolved.
-
VehiclePreSpawnEvent
Construct a newVehiclePreSpawnEvent.- Parameters:
vehicle- TheStorageVehicleinvolved.spawner- ThePlayerwho spawns the vehicle.
-
-
Method Details
-
getSpawner
@Nullable public org.bukkit.entity.Player getSpawner()ThePlayerwho spawns the vehicle, or null if not spawned by a player.
-