Package me.tamkungz.nilkit.tooling
Class GebHelper
java.lang.Object
me.tamkungz.nilkit.tooling.GebHelper
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 TypeMethodDescriptionstatic foo.zaaarf.geb.GEBCreates a GEB bus and loads generated dispatchers from the context loader.static foo.zaaarf.geb.GEBcreateBus(ClassLoader loader) Creates a GEB bus and loads generated dispatchers visible to the given loader.static booleanpost(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IEvent event) Returns GEB's continuation/cancellation result for the event.static voidregister(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IListener listener) static voidunregister(foo.zaaarf.geb.GEB bus, foo.zaaarf.geb.api.IListener listener)
-
Method Details
-
createBus
public static foo.zaaarf.geb.GEB createBus()Creates a GEB bus and loads generated dispatchers from the context loader. -
createBus
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.
-