Improve documentation slightly again

This commit is contained in:
Eclipse 2024-08-02 13:12:01 +00:00
parent 30df3349fd
commit 7394cf5a18
No known key found for this signature in database
GPG key ID: 95E6998F82EC938A

View file

@ -118,7 +118,7 @@ public interface CustomItemData {
/**
* Gets the stack size of the item.
*
* <p>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.</p>
* <p>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.</p>
*
* <p>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.</p>
*
@ -130,7 +130,7 @@ public interface CustomItemData {
/**
* Gets the max damage of the item.
*
* <p>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.</p>
* <p>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.</p>
*
* <p>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.</p>
*