Class CancellableEvent

java.lang.Object
org.bukkit.event.Event
nl.sbdeveloper.vehiclesplus.api.events.Event
nl.sbdeveloper.vehiclesplus.api.events.CancellableEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
GarageOpenEvent

public class CancellableEvent extends Event implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if this event gets cancelled.
    void
    setCancelled(boolean cancelled)
    Set if this event gets cancelled.

    Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.Event

    getHandlerList, getHandlers

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CancellableEvent

      public CancellableEvent()
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Check if this event gets cancelled.
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if cancelled, false if not
    • setCancelled

      public void setCancelled(boolean cancelled)
      Set if this event gets cancelled.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancelled - true if you wish to cancel this event