MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

Smarter detection of when implemented methods in interfaces should be prefixed

Open Earthcomputer opened this issue 2 months ago • 0 comments

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

Earthcomputer avatar Nov 10 '25 00:11 Earthcomputer