Skip to content

Return type of Container#type() #2479

@MrHell228

Description

@MrHell228

Major SpongeAPI version

8

Is this likely to be a breaking change?

Yes

What are you requesting?

Change Container#type() return type from ContainerType to Optional< ContainerType> because it's nullable (e.g. in ClickContainerEvent#inventory() when interacting with just player's inventory)

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageThis label is automatically applied to new issues and pull requests to indicate they require triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions