From e2a873f205cffe786f4cbbc9c56b4c4f3395a950 Mon Sep 17 00:00:00 2001 From: waterlily1 <50417079+waterlily1@users.noreply.github.com> Date: Sat, 2 Dec 2023 21:29:47 +0100 Subject: [PATCH] Updates documentation in EntityEquipment.java (#9992) * Updates documentation in EntityEquopment.java to reflect behavior mentioned in issue #9867 * rebase and squash patches --------- Co-authored-by: schwaa96 --- patches/api/Fix-upstream-javadocs.patch | 120 ++++++++++++++++++ ...t-set-drop-chance-to-EntityEquipment.patch | 6 +- 2 files changed, 124 insertions(+), 2 deletions(-) diff --git a/patches/api/Fix-upstream-javadocs.patch b/patches/api/Fix-upstream-javadocs.patch index 670a11e52d..8e7703b345 100644 --- a/patches/api/Fix-upstream-javadocs.patch +++ b/patches/api/Fix-upstream-javadocs.patch @@ -1079,6 +1079,126 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 /** * Sets the entities armor to the provided array of ItemStacks +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @return chance of the currently held item being dropped (1 for non-{@link Mob}) +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @param chance the chance of the main hand item being dropped +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @return chance of the off hand item being dropped (1 for non-{@link Mob}) +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @param chance the chance of off hand item being dropped +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @return the chance of the helmet being dropped (1 for non-{@link Mob}) +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @param chance of the helmet being dropped +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @return the chance of the chest plate being dropped (1 for non-{@link Mob}) +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @param chance of the chest plate being dropped +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @return the chance of the leggings being dropped (1 for non-{@link Mob}) +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @param chance chance of the leggings being dropped +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @return the chance of the boots being dropped (1 for non-{@link Mob}) +@@ -0,0 +0,0 @@ public interface EntityEquipment { + * + * + * + * @param chance of the boots being dropped diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/inventory/ItemFlag.java diff --git a/patches/api/add-get-set-drop-chance-to-EntityEquipment.patch b/patches/api/add-get-set-drop-chance-to-EntityEquipment.patch index 688074e1c3..58bab0013d 100644 --- a/patches/api/add-get-set-drop-chance-to-EntityEquipment.patch +++ b/patches/api/add-get-set-drop-chance-to-EntityEquipment.patch @@ -18,7 +18,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * + * + * + * @param slot the slot to get the drop chance of @@ -31,7 +32,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * + * + * + * @param slot the slot to set the drop chance of