mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
#621: Add HumanEntity#getItemInUse and Material#getSlipperiness
By: konsolas <vincentyntang@gmail.com>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user