From 34646e3aeb0de113cbd617e96dd8a72ab2680659 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 2 Mar 2016 17:02:52 +1100 Subject: [PATCH] SPIGOT-1622: Add drop chance methods for off hand. By: md_5 --- .../org/bukkit/inventory/EntityEquipment.java | 67 ++++++++++++++++--- 1 file changed, 57 insertions(+), 10 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java b/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java index 6b0c53a074..fc1c98b393 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java +++ b/paper-api/src/main/java/org/bukkit/inventory/EntityEquipment.java @@ -137,9 +137,29 @@ public interface EntityEquipment { void clear(); /** - * Gets the chance of the currently held item being dropped upon this - * creature's death. - * + * @deprecated entities can duel wield now use the methods for the specific + * hand instead + * @see #getItemInMainHandDropChance(ItemStack) + * @see #getItemInOffHandDropChance(ItemStack) + * @return drop chance + */ + @Deprecated + float getItemInHandDropChance(); + + /** + * @deprecated entities can duel wield now use the methods for the specific + * hand instead + * @see #setItemInMainHandDropChance(ItemStack) + * @see #setItemInOffHandDropChance(ItemStack) + * @param chance drop chance + */ + @Deprecated + void setItemInHandDropChance(float chance); + + /** + * Gets the chance of the main hand item being dropped upon this creature's + * death. + * *