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

    Constructors
    Constructor
    Description
    BukkitPlayer(WorldEditPlugin plugin, org.bukkit.entity.Player player)
     
    BukkitPlayer(org.bukkit.entity.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dispatchCUIEvent(com.sk89q.worldedit.internal.cui.CUIEvent event)
     
    com.sk89q.worldedit.world.block.BaseBlock
    getBlockInHand(com.sk89q.worldedit.util.HandSide handSide)
     
     
    <T> T
    getFacet(Class<? extends T> cls)
     
    com.sk89q.worldedit.world.gamemode.GameMode
     
     
    com.sk89q.worldedit.extent.inventory.BlockBag
     
    com.sk89q.worldedit.blocks.BaseItemStack
    getItemInHand(com.sk89q.worldedit.util.HandSide handSide)
     
     
    com.sk89q.worldedit.util.Location
     
     
    org.bukkit.entity.Player
     
    com.sk89q.worldedit.session.SessionKey
     
    com.sk89q.worldedit.entity.BaseEntity
     
     
    com.sk89q.worldedit.world.World
     
    void
    giveItem(com.sk89q.worldedit.blocks.BaseItemStack itemStack)
     
    boolean
     
    boolean
     
    void
    print(com.sk89q.worldedit.util.formatting.text.Component component)
     
    void
    Deprecated.
    void
    Deprecated.
    void
    Deprecated.
    void
    Deprecated.
    void
     
    <B extends com.sk89q.worldedit.world.block.BlockStateHolder<B>>
    void
    sendFakeBlock(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

      public BukkitPlayer(WorldEditPlugin plugin, org.bukkit.entity.Player player)
  • Method Details

    • getUniqueId

      public UUID 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 interface com.sk89q.worldedit.entity.Player
      Overrides:
      getBlockInHand in class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
      Throws:
      com.sk89q.worldedit.WorldEditException
    • getName

      public String getName()
    • getDisplayName

      public String getDisplayName()
    • giveItem

      public void giveItem(com.sk89q.worldedit.blocks.BaseItemStack itemStack)
    • printRaw

      @Deprecated public void printRaw(String msg)
      Deprecated.
    • print

      @Deprecated public void print(String msg)
      Deprecated.
    • printDebug

      @Deprecated public void printDebug(String msg)
      Deprecated.
    • printError

      @Deprecated public void printError(String msg)
      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

      public String[] getGroups()
    • getInventoryBlockBag

      public com.sk89q.worldedit.extent.inventory.BlockBag getInventoryBlockBag()
    • getGameMode

      public com.sk89q.worldedit.world.gamemode.GameMode getGameMode()
      Specified by:
      getGameMode in interface com.sk89q.worldedit.entity.Player
      Overrides:
      getGameMode in class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
    • setGameMode

      public void setGameMode(com.sk89q.worldedit.world.gamemode.GameMode gameMode)
      Specified by:
      setGameMode in interface com.sk89q.worldedit.entity.Player
      Overrides:
      setGameMode in class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
    • hasPermission

      public boolean hasPermission(String perm)
    • getWorld

      public com.sk89q.worldedit.world.World getWorld()
    • dispatchCUIEvent

      public void dispatchCUIEvent(com.sk89q.worldedit.internal.cui.CUIEvent event)
      Specified by:
      dispatchCUIEvent in interface com.sk89q.worldedit.extension.platform.Actor
      Overrides:
      dispatchCUIEvent in class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
    • isAllowedToFly

      public boolean isAllowedToFly()
      Overrides:
      isAllowedToFly in class com.sk89q.worldedit.extension.platform.AbstractPlayerActor
    • setFlying

      public void setFlying(boolean flying)
      Overrides:
      setFlying in class com.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

      public Locale getLocale()
    • sendAnnouncements

      public void sendAnnouncements()
    • getFacet

      @Nullable public <T> T getFacet(Class<? extends T> cls)
    • 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 interface com.sk89q.worldedit.entity.Player
      Overrides:
      sendFakeBlock in class com.sk89q.worldedit.extension.platform.AbstractPlayerActor