Implement API for "main hand" and "off hand" slots.
Also deprecate existing "hand" API as it is not specific about which hand is being referred to. Implementations should default this method to the "main hand". By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
@@ -105,7 +105,10 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
|
||||
* Returns the ItemStack currently in your hand, can be empty.
|
||||
*
|
||||
* @return The ItemStack of the item you are currently holding.
|
||||
* @deprecated Humans may now dual wield in their off hand, use explicit
|
||||
* methods in {@link PlayerInventory}.
|
||||
*/
|
||||
@Deprecated
|
||||
public ItemStack getItemInHand();
|
||||
|
||||
/**
|
||||
@@ -113,7 +116,10 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
|
||||
* user was holding.
|
||||
*
|
||||
* @param item The ItemStack which will end up in the hand
|
||||
* @deprecated Humans may now dual wield in their off hand, use explicit
|
||||
* methods in {@link PlayerInventory}.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setItemInHand(ItemStack item);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user