Added Entity interfaces, changed Player to implement these

This commit is contained in:
Dinnerbone
2010-12-29 22:11:33 +00:00
parent 36b1e38d4c
commit 47207a0dbe
5 changed files with 311 additions and 15 deletions

View File

@@ -0,0 +1,15 @@
package org.bukkit;
/**
* Represents a human entity, such as an NPC or a player
*/
public interface EntityHuman {
/**
* Gets the item this entity has currently selected, which will be shown in
* their hand
*
* @return ItemStack containing details on the item this entity has selected
*/
public ItemStack getSelectedItem();
}