Skip to content
liach edited this page Nov 20, 2019 · 1 revision

Mixin

Mixin is a library by @SpongePowered to make implementing its Minecraft plugin API, SpongeAPI, easier by allowing more flexible interface injections to class hierarchy.

It was mainly maintained by @Mumfrey, who created Mixin from a set of Java bytecode modification utilities originally present in LiteLoader, which switched to Mixin since Minecraft 1.8.9 as well.

Over time, as Sponge and LiteLoader has bytecode modification needs other than injecting interfaces and exposing hooks to existing code, Mixin has become more general-purposed, serving the majority of bytecode modification needs with security guarantees.

However, since official Mixin documentation was written early, it failed to cover much of the later additions for general bytecode modification needs, which are the main usage of Mixin in Fabric mod development. As a result, this wiki will document some content that is intended to be "Advanced Series" in the official Mixin wiki.

SpongePowered Mixin Official Documentation

Please refer to the upstream wiki for more official information.

Stuff missing from official wiki

Clone this wiki locally