From 21270d3cc6c421f8359041df6b570f685dff1df7 Mon Sep 17 00:00:00 2001 From: MrHell228 Date: Sat, 14 Sep 2024 00:07:46 +0300 Subject: [PATCH] Revert "Change Container#type() to Optional" This reverts commit 7d68b8d4a3a789d6cc7da8697355ed193eab6dec. --- .../java/org/spongepowered/api/item/inventory/Container.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/spongepowered/api/item/inventory/Container.java b/src/main/java/org/spongepowered/api/item/inventory/Container.java index 0a0e7b9d47..23baf0c45c 100644 --- a/src/main/java/org/spongepowered/api/item/inventory/Container.java +++ b/src/main/java/org/spongepowered/api/item/inventory/Container.java @@ -94,9 +94,9 @@ public interface Container extends Inventory { /** * Returns the {@link ContainerType} of this container. * - * @return the ContainerType of this container if present. + * @return the ContainerType of this container. */ - Optional type(); + ContainerType type(); /** * Returns the {@link InventoryMenu} if this container has been opened by one.