mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 13:43:55 +01:00
Moved getName from Player to HumanEntity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
2306dd52d7
commit
54e61aab10
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue