mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
36 lines
638 B
Java
36 lines
638 B
Java
|
|
package org.bukkit;
|
|
|
|
/**
|
|
* Represents a player, connected or not
|
|
*
|
|
*/
|
|
public interface Player {
|
|
/**
|
|
* Returns the name of this player
|
|
*
|
|
* @return Player name
|
|
*/
|
|
public String getName();
|
|
|
|
/**
|
|
* Checks if this player is currently online
|
|
*
|
|
* @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();
|
|
}
|