From 3019b6a70c0c70d6286eb1bc6fd21aaf3205ad48 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 2 Mar 2016 17:02:52 +1100 Subject: SPIGOT-1622: Add drop chance methods for off hand. --- .../java/org/bukkit/inventory/EntityEquipment.java | 67 ++++++++++++++++++---- 1 file changed, 57 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/main/java/org/bukkit/inventory/EntityEquipment.java b/src/main/java/org/bukkit/inventory/EntityEquipment.java index 6b0c53a0..fc1c98b3 100644 --- a/src/main/java/org/bukkit/inventory/EntityEquipment.java +++ b/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. + * *