Skip to content

Auto SuppressWarnings on BlockEntiy#getLevel and some else #getLevel or level.dosomething() method #2490

@Lounode

Description

@Lounode

Minecraft Development for IntelliJ plugin version

2025.185

Description of the feature request

When try to use getLevel in BlockEntiy or getLevel in entity
ide will warning because it's nullable because this blockentity or entity may not in a level now

but more common scenario is: we know it coult not be null and should't warn unless use getlevel in constructor.

manual requireNonnull or @SuppressWarnings is too annoying!

so, could add a feature to auto auto suppress these warnings?

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