Moved getName from Player to HumanEntity

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2010-12-30 04:29:53 +00:00
parent 2306dd52d7
commit 54e61aab10
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 * Represents a human entity, such as an NPC or a player
*/ */
public interface HumanEntity extends LivingEntity { 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 * Gets the item this entity has currently selected, which will be shown in
* their hand * their hand

View File

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