public class SpongePlayer extends SpongeEntity implements IPlayer
| Constructor and Description |
|---|
SpongePlayer(org.spongepowered.api.entity.living.player.Player player) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get()
upwrap this interface.
|
SimpleChunkLocation |
getChunk() |
IInventory |
getInventory() |
IItemStack |
getItemInMainHand()
Get item in this player's main hand.
|
ILocation |
getLocation() |
boolean |
hasPermission(String permission) |
void |
openInventory(IInventory inventory) |
void |
sendMessage(String message) |
void |
setItemInMainHand(IItemStack iS) |
getUniqueIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUniqueIdequals, hashCodepublic SpongePlayer(org.spongepowered.api.entity.living.player.Player player)
public void sendMessage(String message)
sendMessage in interface ICommandSenderpublic boolean hasPermission(String permission)
hasPermission in interface ICommandSenderpublic <T> T get()
IScriptObjectget in interface IScriptObjectget in class SpongeEntitypublic IInventory getInventory()
getInventory in interface IPlayerpublic void openInventory(IInventory inventory)
openInventory in interface IPlayerpublic SimpleChunkLocation getChunk()
public IItemStack getItemInMainHand()
IPlayergetItemInMainHand in interface IPlayerpublic ILocation getLocation()
getLocation in interface IPlayerpublic void setItemInMainHand(IItemStack iS)
setItemInMainHand in interface IPlayer