Skip to content

Commit

Permalink
Change Container#type() to Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHell228 committed May 15, 2024
1 parent 13a1702 commit 7d68b8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public interface Container extends Inventory {
/**
* Returns the {@link ContainerType} of this container.
*
* @return the ContainerType of this container.
* @return the ContainerType of this container if present.
*/
ContainerType type();
Optional<ContainerType> type();

/**
* Returns the {@link InventoryMenu} if this container has been opened by one.
Expand Down

0 comments on commit 7d68b8d

Please sign in to comment.