Skip to content

KeyBindingHelper only takes an net.minecraft.class_304 instead of KeyMapping (26.1) #5274

@JongWasTaken

Description

@JongWasTaken

Hello, I am currently trying to update one of my projects to 26.1.

Part of that was of course to finally migrate away from yarn using migrateMappings, as well as to correct any fabric api method names such as renaming WorldRenderEvents to LevelRenderEvents, etc.

Unfortunately there is one fabric api package that seems to be broken, that being KeyBindingHelper.

KeyBindingHelper.registerKeyBinding() requires an net.minecraft.class_304 instead of a KeyMapping.

I assumed this was just some gradle weirdness relating to sources so I cleared caches and all that, but the issue persists, so I assume it is an oversight or something else I missed.

Specifically, I removed $HOME/.gradle, .gradle in the project directory, as well as build and .idea.

Thank you.

(This is on version 0.144.3+26.1 of fabric api.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportIssues closed due to being a support request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions