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) |
getUniqueId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUniqueId
equals, hashCode
public SpongePlayer(org.spongepowered.api.entity.living.player.Player player)
public void sendMessage(String message)
sendMessage
in interface ICommandSender
public boolean hasPermission(String permission)
hasPermission
in interface ICommandSender
public <T> T get()
IScriptObject
get
in interface IScriptObject
get
in class SpongeEntity
public IInventory getInventory()
getInventory
in interface IPlayer
public void openInventory(IInventory inventory)
openInventory
in interface IPlayer
public SimpleChunkLocation getChunk()
public IItemStack getItemInMainHand()
IPlayer
getItemInMainHand
in interface IPlayer
public ILocation getLocation()
getLocation
in interface IPlayer
public void setItemInMainHand(IItemStack iS)
setItemInMainHand
in interface IPlayer