MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

Invalid inspection warning for Fabric entrypoints

Open ThatGravyBoat opened this issue 6 months ago • 0 comments

Minecraft Development for IntelliJ plugin version

2025.1-1.8.5

IntelliJ version

2025.1.2

Operating System

MacOS sequoia 15.5

Target platform

Fabric

Description of the bug

In the https://github.com/minecraft-dev/MinecraftDev/blob/dev/src/main/kotlin/platform/fabric/inspection/FabricEntrypointsInspection.kt#L112 it checks if the method references in entrypoints have no parameters but entrypoints can have parameters for custom ones as in the language adapters for fabric it uses MethodHandleProxies.asInterfaceInstance which means you can get an entrypoint as a Consumer for example with FabricLoader.getInstance().getEntrypoints("someentrypoint", Consumer::class.java)

ThatGravyBoat avatar Jul 01 '25 15:07 ThatGravyBoat