Package com.stardevllc.starevents
Class BukkitEventBus
java.lang.Object
com.stardevllc.starlib.eventbus.impl.StarEventBus<org.bukkit.event.Event,org.bukkit.event.Cancellable>
com.stardevllc.starevents.BukkitEventBus
- All Implemented Interfaces:
com.stardevllc.starlib.eventbus.IEventBus<org.bukkit.event.Event,org.bukkit.event.Cancellable>
public class BukkitEventBus
extends com.stardevllc.starlib.eventbus.impl.StarEventBus<org.bukkit.event.Event,org.bukkit.event.Cancellable>
This is a bus used for StarEvents related purposes that prevents duplicate events from triggering as multiple child events might be fired for the same event
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stardevllc.starlib.eventbus.impl.StarEventBus
com.stardevllc.starlib.eventbus.impl.StarEventBus.EventHandler<E,C> -
Field Summary
Fields inherited from class com.stardevllc.starlib.eventbus.impl.StarEventBus
cancelClass, cancelMapper, eventClass -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.stardevllc.starlib.eventbus.impl.StarEventBus
addChildBus, clearListeners, getEventClass, getHandlers, setCancelHandler, setCancelMapper, subscribe, unsubscribe
-
Constructor Details
-
BukkitEventBus
public BukkitEventBus()Constructs a new BukkitEventBus
-
-
Method Details
-
post
public <E extends org.bukkit.event.Event> E post(E event) - Specified by:
postin interfacecom.stardevllc.starlib.eventbus.IEventBus<org.bukkit.event.Event,org.bukkit.event.Cancellable> - Overrides:
postin classcom.stardevllc.starlib.eventbus.impl.StarEventBus<org.bukkit.event.Event,org.bukkit.event.Cancellable>
-