Skip to content
forked from txmx/flcl

Fabric Language Adapter for Clojure

License

Notifications You must be signed in to change notification settings

emassey0135/flcl

 
 

Repository files navigation

This is a Fabric Language Adapter for Clojure.

Usage

Mixins in Clojure are used almost the exact same way they're used in Java. More differences will arise once the code allows for more Clojure-fication of the macro. Targets must have their parameter types and return type defined concretely, exactly how the injection expects the layout to be. Note that the first parameter on non-static method targets will contain the this for your target class.

(mixin MinecraftServer
       (:modify-arg ^{:at (at :new :target "net/minecraft/server/ServerMetadata")
                      :ordinal 0}
         ^Text createMetadata [self ^Text _] (Text/of "hello world")))

About

Fabric Language Adapter for Clojure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.2%
  • Clojure 33.8%