Skip to content

Interface Injection #28

Description

@PssbleTrngle

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions