#621: Add HumanEntity#getItemInUse and Material#getSlipperiness

By: konsolas <vincentyntang@gmail.com>
This commit is contained in:
Bukkit/Spigot
2021-06-12 21:07:25 +01:00
parent e1c30137fb
commit b29d02153d
2 changed files with 40 additions and 0 deletions

View File

@@ -293,6 +293,16 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
*/
public boolean isHandRaised();
/**
* Gets the item that the player is using (eating food, drawing back a bow,
* blocking, etc.)
*
* @return the item being used by the player, or null if they are not using
* an item
*/
@Nullable
public ItemStack getItemInUse();
/**
* Get the total amount of experience required for the player to level
*