mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-20 05:14:15 +00:00
Move getItemInUse up to LivingEntity
This commit is contained in:
parent
819eef734f
commit
9321d665f5
2 changed files with 10 additions and 10 deletions
|
@ -317,16 +317,6 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
||||||
*/
|
*/
|
||||||
public boolean isHandRaised();
|
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
|
* Get the total amount of experience required for the player to level
|
||||||
*
|
*
|
||||||
|
|
|
@ -196,6 +196,16 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||||
*/
|
*/
|
||||||
public void setMaximumAir(int ticks);
|
public void setMaximumAir(int ticks);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the number of ticks remaining for the current item's usage.
|
* Gets the number of ticks remaining for the current item's usage.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue