All entity stuff in org.bukkit moved to org.bukkit.entity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
49
paper-api/src/main/java/org/bukkit/entity/HumanEntity.java
Normal file
49
paper-api/src/main/java/org/bukkit/entity/HumanEntity.java
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.ItemStack;
|
||||
import org.bukkit.PlayerInventory;
|
||||
|
||||
/**
|
||||
* Represents a human entity, such as an NPC or a player
|
||||
*/
|
||||
public interface HumanEntity extends LivingEntity {
|
||||
/**
|
||||
* Returns the name of this player
|
||||
*
|
||||
* @return Player name
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/**
|
||||
* Get the player's inventory.
|
||||
*
|
||||
* @return The inventory of the player, this also contains the armor slots.
|
||||
*/
|
||||
public PlayerInventory getInventory();
|
||||
|
||||
/**
|
||||
* Returns the ItemStack currently in your hand, can be empty.
|
||||
*
|
||||
* @return The ItemStack of the item you are currently holding.
|
||||
*/
|
||||
public ItemStack getItemInHand();
|
||||
|
||||
|
||||
/** TODO: This probably won't work ;(
|
||||
* Sets the item to the given ItemStack, this will replace whatever the
|
||||
* user was holding.
|
||||
*
|
||||
* @param item The ItemStack which will end up in the hand
|
||||
* @return
|
||||
*
|
||||
public void setItemInHand( ItemStack item );
|
||||
|
||||
**
|
||||
* Changes the item in hand to another of your 'action slots'.
|
||||
*
|
||||
* @param index The new index to use, only valid ones are 0-8.
|
||||
*
|
||||
public void selectItemInHand( int index );
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user