Class BloonsEvent

java.lang.Object
org.bukkit.event.Event
net.jeqo.bloons.events.BloonsEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
BloonsConfigReloadEvent, MultipartBalloonEquipEvent, MultipartBalloonForceEquipEvent, MultipartBalloonForceUnequipEvent, MultipartBalloonStoreEvent, MultipartBalloonUnequipEvent, SingleBalloonEquipEvent, SingleBalloonForceEquipEvent, SingleBalloonForceUnequipEvent, SingleBalloonStoreEvent, SingleBalloonUnequipEvent

public class BloonsEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
A custom even class that can be used to create our own bloons events These are nearly the same as Bukkit events and can be used interchangeably
  • 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
    void
    Cancels the current event
    @NotNull org.bukkit.event.HandlerList
    Gets all listeners that are listening to this event
    boolean
    Returns whether the event is cancelled.
    void
    setCancelled(boolean cancel)
    Sets whether the event is cancelled.
    void
    unregister(org.bukkit.plugin.Plugin plugin)
    Unregisters the listener
    void
    Unregisters all listeners from the event

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • BloonsEvent

      public BloonsEvent()
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets all listeners that are listening to this event
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      A list of handlers, type org.bukkit.event.HandlerList
    • isCancelled

      public boolean isCancelled()
      Returns whether the event is cancelled.
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if the event is cancelled, false otherwise, type boolean
    • setCancelled

      public void setCancelled(boolean cancel)
      Sets whether the event is cancelled.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancel - true if you wish to cancel this event, false otherwise, type boolean
    • cancel

      public void cancel()
      Cancels the current event
    • unregister

      public void unregister(org.bukkit.plugin.Plugin plugin)
      Unregisters the listener
      Parameters:
      plugin - the plugin to unregister the event from, type org.bukkit.plugin.Plugin
    • unregisterAll

      public void unregisterAll()
      Unregisters all listeners from the event