Class PluginEventBus<P extends org.bukkit.plugin.java.JavaPlugin>

java.lang.Object
com.stardevllc.starlib.eventbus.impl.StarEventBus<Object,org.bukkit.event.Cancellable>
com.stardevllc.starmclib.plugin.PluginEventBus<P>
Type Parameters:
P - The plugin type
All Implemented Interfaces:
com.stardevllc.starlib.eventbus.IEventBus<Object,org.bukkit.event.Cancellable>

public class PluginEventBus<P extends org.bukkit.plugin.java.JavaPlugin> extends com.stardevllc.starlib.eventbus.impl.StarEventBus<Object,org.bukkit.event.Cancellable>
An IEventBus that allows any object to be called
  • 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
    Modifier and Type
    Field
    Description
    protected final P
     

    Fields inherited from class com.stardevllc.starlib.eventbus.impl.StarEventBus

    cancelClass, cancelMapper, eventClass
  • Constructor Summary

    Constructors
    Constructor
    Description
    PluginEventBus(P plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class com.stardevllc.starlib.eventbus.impl.StarEventBus

    addChildBus, clearListeners, getEventClass, getHandlers, post, setCancelHandler, setCancelMapper, subscribe, unsubscribe

    Methods inherited from class java.lang.Object

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

    • plugin

      protected final P extends org.bukkit.plugin.java.JavaPlugin plugin
  • Constructor Details

    • PluginEventBus

      public PluginEventBus(P plugin)
  • Method Details

    • getPlugin

      public P getPlugin()