Skip to content

Smarter detection of when implemented methods in interfaces should be prefixed #2540

@Earthcomputer

Description

@Earthcomputer

Minecraft Development for IntelliJ plugin version

2025.2-1.8.6

Description of the feature request

Currently, if a method implemented from an interface is in a mixin, mcdev expects it to always be prefixed by the modid, e.g. modid$method. This requirement should be eased under some conditions:

  • The method descriptor has a type from the current project. This makes the name and descriptor highly unlikely to conflict with any other mod.
  • The implemented interface is a transitively injected interface (the transitiveness is hard to detect on NeoForge but maybe it can be a setting)
  • The implemented interface is an API interface (by some metric, maybe a configurable package name regex)

All of these should be configurable

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