Package nl.mtvehicles.core.events
Class VehicleOpenTrunkEvent
java.lang.Object
org.bukkit.event.Event
nl.mtvehicles.core.infrastructure.models.MTVEvent
nl.mtvehicles.core.events.VehicleOpenTrunkEvent
- All Implemented Interfaces:
- CanEditLicensePlate,- HasVehicle,- IsCancellable,- org.bukkit.event.Cancellable
public class VehicleOpenTrunkEvent
extends MTVEvent
implements IsCancellable, org.bukkit.event.Cancellable, CanEditLicensePlate
On vehicle trunk open (either via left click or using /vehicle trunk) command
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.Eventorg.bukkit.event.Event.Result
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet license plate of the vehicle used in the eventvoidsetCancelled(boolean cancelled) Sets the cancellation state of this event.voidsetLicensePlate(String licensePlate) Set the license plate of the vehicle used in the eventMethods inherited from class nl.mtvehicles.core.infrastructure.models.MTVEventcall, getHandlerList, getHandlers, getPlayer, isCancelled, setPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.CancellableisCancelledMethods inherited from interface nl.mtvehicles.core.events.interfaces.HasVehiclegetVehicle
- 
Constructor Details- 
VehicleOpenTrunkEventpublic VehicleOpenTrunkEvent()
 
- 
- 
Method Details- 
setCancelledpublic void setCancelled(boolean cancelled) Description copied from interface:IsCancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- org.bukkit.event.Cancellable
- Specified by:
- setCancelledin interface- IsCancellable
- Parameters:
- cancelled- true if you wish to cancel this event
 
- 
getLicensePlateDescription copied from interface:HasVehicleGet license plate of the vehicle used in the event- Specified by:
- getLicensePlatein interface- HasVehicle
- Returns:
- Vehicle's license plate
 
- 
setLicensePlateDescription copied from interface:CanEditLicensePlateSet the license plate of the vehicle used in the event- Specified by:
- setLicensePlatein interface- CanEditLicensePlate
- Parameters:
- licensePlate- New license plate
 
 
-