Moved getName from Player to HumanEntity

This commit is contained in:
Dinnerbone 2010-12-30 04:29:53 +00:00
parent 592df41bb1
commit 31d03b2ac0
2 changed files with 7 additions and 7 deletions

View File

@ -5,6 +5,13 @@ package org.bukkit;
* 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();
/**
* Gets the item this entity has currently selected, which will be shown in
* their hand

View File

@ -6,13 +6,6 @@ package org.bukkit;
*
*/
public interface Player extends HumanEntity {
/**
* Returns the name of this player
*
* @return Player name
*/
public String getName();
/**
* Checks if this player is currently online
*