Interface injection is a dev-only feature that is available on both NeoForge and Fabric.
It allows to add interfaces to existing minecraft classes. These interfaces still have to be implemented using a mixin, but you do not need to cast the class itself all the time anymore, since the compiler already knows then, that it will be implemented by something.
// not needed anymore
var implementation = (SomeMixin) player;
Both implementations differ a bit, but like Access Transformers & Access Wideners, it might be possible to translate on into the other.
Like access transformers & access wideneners, these interface injections can also be included when publishing to maven, which atuo-adds them in mods depending on them
Interface injection is a dev-only feature that is available on both NeoForge and Fabric.
It allows to add interfaces to existing minecraft classes. These interfaces still have to be implemented using a mixin, but you do not need to cast the class itself all the time anymore, since the compiler already knows then, that it will be implemented by something.
Both implementations differ a bit, but like Access Transformers & Access Wideners, it might be possible to translate on into the other.
Like access transformers & access wideneners, these interface injections can also be included when publishing to maven, which atuo-adds them in mods depending on them