From d8fe8df57510906632739f04c476cacf617dc536 Mon Sep 17 00:00:00 2001 From: ceze88 Date: Mon, 22 Apr 2024 11:39:34 +0200 Subject: [PATCH] Add javadocs --- .../api/stack/item/StackedItemManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UltimateStacker-API/src/main/java/com/craftaro/ultimatestacker/api/stack/item/StackedItemManager.java b/UltimateStacker-API/src/main/java/com/craftaro/ultimatestacker/api/stack/item/StackedItemManager.java index aba4dc4..70eba7a 100644 --- a/UltimateStacker-API/src/main/java/com/craftaro/ultimatestacker/api/stack/item/StackedItemManager.java +++ b/UltimateStacker-API/src/main/java/com/craftaro/ultimatestacker/api/stack/item/StackedItemManager.java @@ -21,6 +21,14 @@ public interface StackedItemManager { */ @NotNull StackedItem getStackedItem(Item item); + /** + * Create a new StackedItem for the given ItemStack + * @param item The ItemStack to create the stack for + * @param location The location to spawn the stack + * @param amount The amount of items in the stack + * @param killed The entity that is dropping the item + * @return The StackedItem for the given Item or null if it could not be created + */ @Nullable StackedItem createStack(ItemStack item, Location location, int amount, LivingEntity killed); /**