Class GebHelper

java.lang.Object
me.tamkungz.nilkit.tooling.GebHelper

public final class GebHelper extends Object
Convenience bootstrap for the optional GEB event bus bundled in the all-in-one JAR.

GEB listener dispatchers are generated at compile time. Mods using @Listen must also put foo.zaaarf.geb:processor on their annotationProcessor path; the processor is intentionally not shipped in the runtime shadow JAR.

  • Method Summary

    Modifier and Type
    Method
    Description
    static foo.zaaarf.geb.GEB
    Creates a GEB bus and loads generated dispatchers from the context loader.
    static foo.zaaarf.geb.GEB
    Creates a GEB bus and loads generated dispatchers visible to the given loader.
    static boolean
    post(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IEvent event)
    Returns GEB's continuation/cancellation result for the event.
    static void
    register(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IListener listener)
     
    static void
    unregister(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IListener listener)
     

    Methods inherited from class java.lang.Object

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

    • createBus

      public static foo.zaaarf.geb.GEB createBus()
      Creates a GEB bus and loads generated dispatchers from the context loader.
    • createBus

      public static foo.zaaarf.geb.GEB createBus(ClassLoader loader)
      Creates a GEB bus and loads generated dispatchers visible to the given loader.
    • register

      public static void register(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IListener listener)
    • unregister

      public static void unregister(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IListener listener)
    • post

      public static boolean post(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IEvent event)
      Returns GEB's continuation/cancellation result for the event.