From e70782f95fc89395e03e0440a57adc6d1891e0ad Mon Sep 17 00:00:00 2001 From: Nykon Hrytsyshyn Date: Sun, 15 Sep 2024 21:11:31 +0300 Subject: [PATCH] Fixed CustomInventory#clone --- .../minersstudios/whomine/inventory/CustomInventory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper/src/main/java/com/minersstudios/whomine/inventory/CustomInventory.java b/paper/src/main/java/com/minersstudios/whomine/inventory/CustomInventory.java index 5f646140..46561b30 100644 --- a/paper/src/main/java/com/minersstudios/whomine/inventory/CustomInventory.java +++ b/paper/src/main/java/com/minersstudios/whomine/inventory/CustomInventory.java @@ -228,6 +228,13 @@ public interface CustomInventory extends Inventory, Cloneable { */ @NotNull CustomInventory bottomClickAction(final @Nullable InventoryAction bottomClickAction); + /** + * Creates a clone of this inventory with all the contents copied into it + * + * @return Clone of this inventory + */ + @NotNull CustomInventory clone(); + /** * Performs the opening action when the inventory is opened if it is set *