Added Entity interfaces, changed Player to implement these

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2010-12-29 22:11:33 +00:00
parent 7459a15477
commit 033223a9f7
5 changed files with 311 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ package org.bukkit;
* Represents a player, connected or not
*
*/
public interface Player {
public interface Player extends EntityHuman {
/**
* Returns the name of this player
*
@@ -19,18 +19,4 @@ public interface Player {
* @return true if they are online
*/
public boolean isOnline();
/**
* Gets the players current position in the world
*
* @return Location of this player
*/
public Location getLocation();
/**
* Gets the current world this player is on
*
* @return World
*/
public World getWorld();
}