public class BukkitPlayer extends LocalPlayer
server| Constructor and Description |
|---|
BukkitPlayer(WorldEditPlugin plugin,
ServerInterface server,
org.bukkit.entity.Player player) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchCUIEvent(CUIEvent event)
Send a CUI event.
|
void |
floatAt(int x,
int y,
int z,
boolean alwaysGlass)
Make the player float in the given blocks.
|
BaseBlock |
getBlockInHand()
Get the Block that the player is holding.
|
String[] |
getGroups()
Get a player's list of groups.
|
BlockBag |
getInventoryBlockBag()
Get this player's block bag.
|
int |
getItemInHand()
Get the ID of the item that the player is holding.
|
String |
getName()
Get the name of the player.
|
double |
getPitch()
Get the player's view pitch.
|
org.bukkit.entity.Player |
getPlayer() |
WorldVector |
getPosition()
Get the player's position.
|
LocalWorld |
getWorld()
Get the player's world.
|
double |
getYaw()
Get the player's view yaw.
|
void |
giveItem(int type,
int amt)
Gives the player an item.
|
boolean |
hasCreativeMode() |
boolean |
hasPermission(String perm)
Checks if a player has permission.
|
void |
print(String msg)
Print a WorldEdit message.
|
void |
printDebug(String msg)
Print a WorldEdit message.
|
void |
printError(String msg)
Print a WorldEdit error.
|
void |
printRaw(String msg)
Print a message.
|
void |
setPosition(Vector pos,
float pitch,
float yaw)
Move the player.
|
ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, descendLevel, dispatchCUIHandshake, equals, findFreePosition, findFreePosition, getBlockIn, getBlockOn, getBlockTrace, getBlockTrace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getSolidBlockTrace, hashCode, isHoldingPickAxe, isPlayer, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, setOnGround, setPositionpublic BukkitPlayer(WorldEditPlugin plugin, ServerInterface server, org.bukkit.entity.Player player)
public int getItemInHand()
LocalPlayergetItemInHand in class LocalPlayerpublic BaseBlock getBlockInHand() throws WorldEditException
LocalPlayergetBlockInHand in class LocalPlayerWorldEditExceptionpublic String getName()
LocalPlayergetName in class LocalPlayerpublic WorldVector getPosition()
LocalPlayergetPosition in class LocalPlayerpublic double getPitch()
LocalPlayergetPitch in class LocalPlayerpublic double getYaw()
LocalPlayergetYaw in class LocalPlayerpublic void giveItem(int type,
int amt)
LocalPlayergiveItem in class LocalPlayertype - The item id of the item to be given to the playeramt - How many items in the stackpublic void printRaw(String msg)
LocalPlayerprintRaw in class LocalPlayermsg - The message textpublic void print(String msg)
LocalPlayerprint in class LocalPlayermsg - The message textpublic void printDebug(String msg)
LocalPlayerprintDebug in class LocalPlayermsg - The message textpublic void printError(String msg)
LocalPlayerprintError in class LocalPlayermsg - The error message textpublic void setPosition(Vector pos, float pitch, float yaw)
LocalPlayersetPosition in class LocalPlayerpos - Where to move thempitch - The pitch (up/down) of the player's viewyaw - The yaw (left/right) of the player's viewpublic String[] getGroups()
LocalPlayergetGroups in class LocalPlayerpublic BlockBag getInventoryBlockBag()
LocalPlayergetInventoryBlockBag in class LocalPlayerpublic boolean hasPermission(String perm)
LocalPlayerhasPermission in class LocalPlayerperm - The permission to checkpublic LocalWorld getWorld()
LocalPlayergetWorld in class LocalPlayerpublic void dispatchCUIEvent(CUIEvent event)
LocalPlayerdispatchCUIEvent in class LocalPlayerpublic org.bukkit.entity.Player getPlayer()
public boolean hasCreativeMode()
hasCreativeMode in class LocalPlayerpublic void floatAt(int x,
int y,
int z,
boolean alwaysGlass)
LocalPlayerfloatAt in class LocalPlayerx - The X coordinate of the block to float iny - The Y coordinate of the block to float inz - The Z coordinate of the block to float inCopyright © 2010-2014. All Rights Reserved.