Class BukkitPlayer

java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.bukkit.BukkitPlayer
All Implemented Interfaces:
com.fastasyncworldedit.core.entity.MapMetadatable, com.fastasyncworldedit.core.entity.Metadatable, 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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.fastasyncworldedit.core.entity.Metadatable

    com.fastasyncworldedit.core.entity.Metadatable.METADATA_KEYS
  • Field Summary

    Fields inherited from interface com.sk89q.worldedit.util.Identifiable

    CONSOLE, EVERYONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Players are cached by the plugin.
    Deprecated.
    Players are cached by the plugin.
  • 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
     
     
     
    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
    sendTitle(com.sk89q.worldedit.util.formatting.text.Component title, com.sk89q.worldedit.util.formatting.text.Component sub)
     
    void
    setFlying(boolean flying)
     
    void
    setGameMode(com.sk89q.worldedit.world.gamemode.GameMode gameMode)
     
    boolean
    setLocation(com.sk89q.worldedit.util.Location location)
     
    void
    setPermission(String permission, boolean value)
     
    boolean
    trySetPosition(com.sk89q.worldedit.math.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, 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.entity.Entity

    getType

    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, loadClipboardFromDisk, 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

  • 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)
    • setPermission

      public void setPermission(String permission, boolean value)
    • 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 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
    • sendTitle

      public void sendTitle(com.sk89q.worldedit.util.formatting.text.Component title, com.sk89q.worldedit.util.formatting.text.Component sub)
    • unregister

      public void unregister()