We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d079755 commit 96e3b65Copy full SHA for 96e3b65
src/main/java/org/spongepowered/api/item/inventory/Container.java
@@ -93,10 +93,11 @@ public interface Container extends Inventory {
93
94
/**
95
* Returns the {@link ContainerType} of this container.
96
+ * <p>Notably the players own inventory does not have a ContainerType</p>
97
*
98
* @return the ContainerType of this container.
99
*/
- ContainerType type();
100
+ Optional<ContainerType> type();
101
102
103
* Returns the {@link InventoryMenu} if this container has been opened by one.
0 commit comments