(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
(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.
(classpath-directories)
Returns a sequence of File objects for the directories on classpath.
Returns a sequence of File objects for the directories on classpath.
(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.
(find-resources regex)
Scan 'the classpath' for resources that match the given regex.
Scan 'the classpath' for resources that match the given regex.
(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`
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close