Skip to content

Add an IDE inspection error for mixin and target type mismatches #2343

@O7410

Description

@O7410

Minecraft Development for IntelliJ plugin version

2024.1-1.8.0

Description of the feature request

Currently, when the mixin is an interface and the target is a class, there is no IDE error, but there is a compile error that says:
Targetted type 'net.minecraft.block.Block of mypackage.mixin.BlockMixin is not an interface
When the mixin is a class and the target is an interface, there is a runtime error that says
@Mixin target type mismatch: net.minecraft.text.Text is an interface in org.spongepowered.asm.mixin.transformer.MixinInfo$SubType$Standard@75769ab0
This is the behavior i want:
image
image

This is low priority since it's very easy to see what the problem is when you try to run it (the compile and runtime errors)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions