SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

Return type of Container#type()

Open MrHell228 opened this issue 1 year ago • 0 comments

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)

MrHell228 avatar Nov 19 '23 10:11 MrHell228