From 54e61aab108005daf96f466105f5788f7c5f5c16 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 30 Dec 2010 04:29:53 +0000 Subject: [PATCH] Moved getName from Player to HumanEntity By: Dinnerbone --- paper-api/src/org/bukkit/HumanEntity.java | 7 +++++++ paper-api/src/org/bukkit/Player.java | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/paper-api/src/org/bukkit/HumanEntity.java b/paper-api/src/org/bukkit/HumanEntity.java index f839aa3c97..349251d71f 100644 --- a/paper-api/src/org/bukkit/HumanEntity.java +++ b/paper-api/src/org/bukkit/HumanEntity.java @@ -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 diff --git a/paper-api/src/org/bukkit/Player.java b/paper-api/src/org/bukkit/Player.java index 4e1a34aaa1..1958caf994 100644 --- a/paper-api/src/org/bukkit/Player.java +++ b/paper-api/src/org/bukkit/Player.java @@ -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 *