Skip to content

Invalid inspection warning for Fabric entrypoints #2488

@ThatGravyBoat

Description

@ThatGravyBoat

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)

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