Package com.sk89q.worldedit.bukkit
Class BukkitPlayer
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.bukkit.BukkitPlayer
- All Implemented Interfaces:
com.sk89q.worldedit.entity.Entity
,com.sk89q.worldedit.entity.Player
,com.sk89q.worldedit.extension.platform.Actor
,com.sk89q.worldedit.extension.platform.Locatable
,com.sk89q.worldedit.session.SessionOwner
,com.sk89q.worldedit.util.auth.Subject
,com.sk89q.worldedit.util.Faceted
,com.sk89q.worldedit.util.Identifiable
,Cloneable
public class BukkitPlayer
extends com.sk89q.worldedit.extension.platform.AbstractPlayerActor
-
Constructor Summary
ConstructorDescriptionBukkitPlayer
(WorldEditPlugin plugin, org.bukkit.entity.Player player) BukkitPlayer
(org.bukkit.entity.Player player) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatchCUIEvent
(com.sk89q.worldedit.internal.cui.CUIEvent event) com.sk89q.worldedit.world.block.BaseBlock
getBlockInHand
(com.sk89q.worldedit.util.HandSide handSide) <T> T
com.sk89q.worldedit.world.gamemode.GameMode
String[]
com.sk89q.worldedit.extent.inventory.BlockBag
com.sk89q.worldedit.blocks.BaseItemStack
getItemInHand
(com.sk89q.worldedit.util.HandSide handSide) com.sk89q.worldedit.util.Location
getName()
org.bukkit.entity.Player
com.sk89q.worldedit.session.SessionKey
com.sk89q.worldedit.entity.BaseEntity
getState()
com.sk89q.worldedit.world.World
getWorld()
void
giveItem
(com.sk89q.worldedit.blocks.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 com.sk89q.worldedit.world.block.BlockStateHolder<B>>
voidsendFakeBlock
(com.sk89q.worldedit.math.BlockVector3 pos, B block) void
setFlying
(boolean flying) void
setGameMode
(com.sk89q.worldedit.world.gamemode.GameMode gameMode) boolean
setLocation
(com.sk89q.worldedit.util.Location location) boolean
trySetPosition
(com.sk89q.worldedit.math.Vector3 pos, float pitch, float yaw) Methods inherited from class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, clone, descendLevel, equals, findFreePosition, findFreePosition, floatAt, getBlockOn, getBlockTrace, getBlockTrace, getBlockTrace, getBlockTraceFace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getExtent, getSolidBlockTrace, hashCode, isHoldingPickAxe, isPlayer, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, remove, setOnGround, 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
printDebug, printError, printInfo
Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, setPosition
Methods inherited from interface com.sk89q.worldedit.entity.Player
getBlockIn, setPosition
-
Constructor Details
-
BukkitPlayer
public BukkitPlayer(org.bukkit.entity.Player player) -
BukkitPlayer
-
-
Method Details
-
getUniqueId
-
getItemInHand
public com.sk89q.worldedit.blocks.BaseItemStack getItemInHand(com.sk89q.worldedit.util.HandSide handSide) -
getBlockInHand
public com.sk89q.worldedit.world.block.BaseBlock getBlockInHand(com.sk89q.worldedit.util.HandSide handSide) throws com.sk89q.worldedit.WorldEditException - Specified by:
getBlockInHand
in interfacecom.sk89q.worldedit.entity.Player
- Overrides:
getBlockInHand
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
- Throws:
com.sk89q.worldedit.WorldEditException
-
getName
-
getDisplayName
-
giveItem
public void giveItem(com.sk89q.worldedit.blocks.BaseItemStack itemStack) -
printRaw
Deprecated. -
print
Deprecated. -
printDebug
Deprecated. -
printError
Deprecated. -
print
public void print(com.sk89q.worldedit.util.formatting.text.Component component) -
trySetPosition
public boolean trySetPosition(com.sk89q.worldedit.math.Vector3 pos, float pitch, float yaw) -
getGroups
-
getInventoryBlockBag
public com.sk89q.worldedit.extent.inventory.BlockBag getInventoryBlockBag() -
getGameMode
public com.sk89q.worldedit.world.gamemode.GameMode getGameMode()- Specified by:
getGameMode
in interfacecom.sk89q.worldedit.entity.Player
- Overrides:
getGameMode
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
-
setGameMode
public void setGameMode(com.sk89q.worldedit.world.gamemode.GameMode gameMode) - Specified by:
setGameMode
in interfacecom.sk89q.worldedit.entity.Player
- Overrides:
setGameMode
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
-
hasPermission
-
getWorld
public com.sk89q.worldedit.world.World getWorld() -
dispatchCUIEvent
public void dispatchCUIEvent(com.sk89q.worldedit.internal.cui.CUIEvent event) - Specified by:
dispatchCUIEvent
in interfacecom.sk89q.worldedit.extension.platform.Actor
- Overrides:
dispatchCUIEvent
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
-
getPlayer
public org.bukkit.entity.Player getPlayer() -
isAllowedToFly
public boolean isAllowedToFly()- Overrides:
isAllowedToFly
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
-
setFlying
public void setFlying(boolean flying) - Overrides:
setFlying
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
-
getState
public com.sk89q.worldedit.entity.BaseEntity getState() -
getLocation
public com.sk89q.worldedit.util.Location getLocation() -
setLocation
public boolean setLocation(com.sk89q.worldedit.util.Location location) -
getLocale
-
sendAnnouncements
public void sendAnnouncements() -
getFacet
-
getSessionKey
public com.sk89q.worldedit.session.SessionKey getSessionKey() -
sendFakeBlock
public <B extends com.sk89q.worldedit.world.block.BlockStateHolder<B>> void sendFakeBlock(com.sk89q.worldedit.math.BlockVector3 pos, B block) - Specified by:
sendFakeBlock
in interfacecom.sk89q.worldedit.entity.Player
- Overrides:
sendFakeBlock
in classcom.sk89q.worldedit.extension.platform.AbstractPlayerActor
-