Liking cljdoc? Tell your friends :D

lambdaisland.witchcraft.events


actionsclj

source

cancel!clj

(cancel! event)

Cancel an event, use in event handler to stop things from happening

Cancel an event, use in event handler to stop things from happening
sourceraw docstring

class->kwclj

(class->kw name)
source

classpathclj

(classpath)

clojure.java.classpath does not play well with the post-Java 9 application class loader, which is no longer a URLClassLoader, even though ostensibly it tries to cater for this, but in practice if any URLClassLoader or DynamicClassLoader higher in the chain contains a non-empty list of URLs, then this shadows the system classpath.

clojure.java.classpath does not play well with the post-Java 9 application
class loader, which is no longer a URLClassLoader, even though ostensibly it
tries to cater for this, but in practice if any URLClassLoader or
DynamicClassLoader higher in the chain contains a non-empty list of URLs, then
this shadows the system classpath.
sourceraw docstring

classpath-directoriesclj

(classpath-directories)

Returns a sequence of File objects for the directories on classpath.

Returns a sequence of File objects for the directories on classpath.
sourceraw docstring

classpath-jarfilesclj

(classpath-jarfiles)

Returns a sequence of JarFile objects for the JAR files on classpath.

Returns a sequence of JarFile objects for the JAR files on classpath.
sourceraw docstring

event-classesclj

source

eventsclj

source

find-event-classesclj

(find-event-classes)
source

find-resourcesclj

(find-resources regex)

Scan 'the classpath' for resources that match the given regex.

Scan 'the classpath' for resources that match the given regex.
sourceraw docstring

listen!clj

(listen! event k f)

Listen to the given event (keyword, see (keys lambdaisland.witchcraft.events/events)). k is a unique key for this handler, subsequent calls with the same key will replace the previous handler. f is a single argument function, it receives the bukkit event converted to a Clojure map with [[bean]]. The original event class can be accessed with :lambdaisland.witchcraft.events/raw

Listen to the given event (keyword, see `(keys
lambdaisland.witchcraft.events/events)`). `k` is a unique key for this
handler, subsequent calls with the same key will replace the previous handler.
`f` is a single argument function, it receives the bukkit event converted to a
Clojure map with [[bean]]. The original event class can be accessed with
`:lambdaisland.witchcraft.events/raw`
sourceraw docstring

listen-raw!clj

(listen-raw! event k f)

Like listen!, but skips calling [[bean]], you get the raw Bukkit event instance.

Like [[listen!]], but skips calling [[bean]], you get the raw Bukkit event instance. 
sourceraw docstring

priorityclj

source

resolve-event-classclj

source

unlisten!clj

(unlisten! event key)
source

unregister-all-event-listenersclj

(unregister-all-event-listeners event)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close