Terra (Fabric/Forge/Paper)

Terra (Fabric/Forge/Paper)

74.2k Downloads

Use multi-class mixin to implement Handle

dfsek opened this issue ยท 0 comments

commented

Describe the issue

Per Handle's contract, #getHandle returns the object which the Terra API instance delegates to. Due to our direct implementation on Fabric, all #getHandle calls simply return this. Implementing #getHandle individually is tedious, redundant, and can cause non-fatal mixin conflicts if it's implemented in classes mixed into multiple times.

We should use Mixin's multi-target feature to implement #getHandle in one mixin, applying it to all relevant Minecraft classes simultaneously.