From 7394cf5a18ed846843bda7025d5bccddf4d57c17 Mon Sep 17 00:00:00 2001 From: Eclipse Date: Fri, 2 Aug 2024 13:12:01 +0000 Subject: [PATCH] Improve documentation slightly again --- .../org/geysermc/geyser/api/item/custom/CustomItemData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/org/geysermc/geyser/api/item/custom/CustomItemData.java b/api/src/main/java/org/geysermc/geyser/api/item/custom/CustomItemData.java index a754e7e44..e09e0c9b5 100644 --- a/api/src/main/java/org/geysermc/geyser/api/item/custom/CustomItemData.java +++ b/api/src/main/java/org/geysermc/geyser/api/item/custom/CustomItemData.java @@ -118,7 +118,7 @@ public interface CustomItemData { /** * Gets the stack size of the item. * - *

Returns 0 if not set. When not set (or 0), Geyser defaults to the stack count of the Java item when based on a vanilla item, or 64 when registering a non-vanilla item.

+ *

Returns 0 if not set. When not set, Geyser defaults to the stack count of the Java item when based on a vanilla item, or 64 when registering a non-vanilla item.

* *

Note that, to copy Java behaviour, setting the stack size of an item to a value above 1 will set the max damage to 0. If a max damage value above 0 was explicitly set, an exception will be thrown.

* @@ -130,7 +130,7 @@ public interface CustomItemData { /** * Gets the max damage of the item. * - *

Returns -1 if not set. When not set (or below 0), Geyser defaults to the maximum damage of the Java item when based on a vanilla item, or uses 0 when registering a non-vanilla item.

+ *

Returns -1 if not set. When not set, Geyser defaults to the maximum damage of the Java item when based on a vanilla item, or uses 0 when registering a non-vanilla item.

* *

Note that, to copy Java behaviour, setting the max damage value of an item to a value above 0 will set the stack size to 1. If a stack size above 1 was explicitly set, an exception will be thrown.

*