Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 691 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 691 Bytes

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")))