Package com.sk89q.worldedit.bukkit
Class BukkitPlayer
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.bukkit.BukkitPlayer
- All Implemented Interfaces:
MapMetadatable
,Metadatable
,Entity
,Player
,Actor
,Locatable
,SessionOwner
,Subject
,Faceted
,Identifiable
,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fastasyncworldedit.core.entity.Metadatable
Metadatable.METADATA_KEYS
-
Field Summary
Fields inherited from interface com.sk89q.worldedit.util.Identifiable
CONSOLE, EVERYONE
-
Constructor Summary
ConstructorDescriptionBukkitPlayer
(WorldEditPlugin plugin, Player player) Deprecated.Players are cached by the plugin.BukkitPlayer
(Player player) Deprecated.Players are cached by the plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatchCUIEvent
(CUIEvent event) getBlockInHand
(HandSide handSide) <T> T
String[]
getItemInHand
(HandSide handSide) getName()
getState()
getWorld()
void
giveItem
(BaseItemStack itemStack) boolean
hasPermission
(String perm) boolean
void
print
(com.sk89q.worldedit.util.formatting.text.Component component) void
Deprecated.void
printDebug
(String msg) Deprecated.void
printError
(String msg) Deprecated.void
Deprecated.void
<B extends BlockStateHolder<B>>
voidsendFakeBlock
(BlockVector3 pos, B block) void
sendTitle
(com.sk89q.worldedit.util.formatting.text.Component title, com.sk89q.worldedit.util.formatting.text.Component sub) void
setFlying
(boolean flying) void
setGameMode
(GameMode gameMode) boolean
setLocation
(Location location) void
setPermission
(String permission, boolean value) boolean
trySetPosition
(Vector3 pos, float pitch, float yaw) void
Methods inherited from class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, clone, descendLevel, equals, findFreePosition, findFreePosition, floatAt, getAllowedRegions, getAllowedRegions, getBlockOn, getBlockTrace, getBlockTrace, getBlockTrace, getBlockTraceFace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getDisallowedRegions, getDisallowedRegions, getExtent, getLargestRegion, getRawMeta, getSolidBlockTrace, hashCode, isHoldingPickAxe, isPlayer, loadClipboardFromDisk, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, remove, runAction, setOnGround, setSelection, trySetPosition
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extension.platform.Actor
cancel, checkAction, confirm, decline, getLimit, printDebug, printError, printInfo, queueAction, runAsyncIfFree, runIfFree
Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, setPosition
Methods inherited from interface com.fastasyncworldedit.core.entity.MapMetadatable
deleteMeta, getAndSetMeta, getMeta, getMeta, hasMeta, putIfAbsent, setMeta
Methods inherited from interface com.sk89q.worldedit.entity.Player
getBlockIn, getSelection, getWorldForEditing, setPosition, setSelection
Methods inherited from interface com.sk89q.worldedit.session.SessionOwner
getSession
Methods inherited from interface com.sk89q.worldedit.util.auth.Subject
togglePermission
-
Constructor Details
-
BukkitPlayer
Deprecated.Players are cached by the plugin. Should useWorldEditPlugin.wrapPlayer(Player)
This constructs a newBukkitPlayer
for the givenPlayer
.- Parameters:
player
- The correspondingPlayer
or null if you need a null WorldEdit player for some reason.
-
BukkitPlayer
Deprecated.Players are cached by the plugin. Should useWorldEditPlugin.wrapPlayer(Player)
This constructs a newBukkitPlayer
for the givenPlayer
.- Parameters:
plugin
- The running instance ofWorldEditPlugin
player
- The correspondingPlayer
or null if you need a null WorldEdit player for some reason.
-
-
Method Details
-
getUniqueId
-
getItemInHand
-
getBlockInHand
- Specified by:
getBlockInHand
in interfacePlayer
- Overrides:
getBlockInHand
in classAbstractPlayerActor
- Throws:
WorldEditException
-
getName
-
getDisplayName
-
giveItem
-
printRaw
Deprecated. -
print
Deprecated. -
printDebug
Deprecated. -
printError
Deprecated. -
print
public void print(com.sk89q.worldedit.util.formatting.text.Component component) -
trySetPosition
-
getGroups
-
getInventoryBlockBag
-
getGameMode
- Specified by:
getGameMode
in interfacePlayer
- Overrides:
getGameMode
in classAbstractPlayerActor
-
setGameMode
- Specified by:
setGameMode
in interfacePlayer
- Overrides:
setGameMode
in classAbstractPlayerActor
-
hasPermission
-
setPermission
-
getWorld
-
dispatchCUIEvent
- Specified by:
dispatchCUIEvent
in interfaceActor
- Overrides:
dispatchCUIEvent
in classAbstractPlayerActor
-
getPlayer
-
isAllowedToFly
public boolean isAllowedToFly()- Overrides:
isAllowedToFly
in classAbstractPlayerActor
-
setFlying
public void setFlying(boolean flying) - Overrides:
setFlying
in classAbstractPlayerActor
-
getState
-
getLocation
-
setLocation
-
getLocale
-
sendAnnouncements
public void sendAnnouncements() -
getFacet
-
getSessionKey
-
sendFakeBlock
- Specified by:
sendFakeBlock
in interfacePlayer
- Overrides:
sendFakeBlock
in classAbstractPlayerActor
-
sendTitle
public void sendTitle(com.sk89q.worldedit.util.formatting.text.Component title, com.sk89q.worldedit.util.formatting.text.Component sub) -
unregister
public void unregister()
-