Class AsyncPlayer
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.extension.platform.PlayerProxy
com.fastasyncworldedit.core.wrappers.AsyncPlayer
- All Implemented Interfaces:
- MapMetadatable,- Metadatable,- Entity,- Player,- Actor,- Locatable,- SessionOwner,- Subject,- Faceted,- Identifiable,- Cloneable
- Direct Known Subclasses:
- LocationMaskedPlayerWrapper,- SilentPlayerWrapper
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.fastasyncworldedit.core.entity.MetadatableMetadatable.METADATA_KEYS
- 
Field SummaryFields inherited from interface com.sk89q.worldedit.util.IdentifiableCONSOLE, EVERYONE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGo up one level to the next free space above.booleanascendToCeiling(int clearance) Ascend to the ceiling above.booleanascendToCeiling(int clearance, boolean alwaysGlass) Ascend to the ceiling above.booleanascendUpwards(int distance) Just go up.booleanascendUpwards(int distance, boolean alwaysGlass) Just go up.booleanGo up one level to the next free space above.voidFind a position for the player to stand that is not inside a block.voidfindFreePosition(Location searchPos) Find a position for the actor to stand that is not inside a block.voidfloatAt(int x, int y, int z, boolean alwaysGlass) Make the player float in the given blocks.getBlockTrace(int range, boolean useLastBlock) Get the point of the block being looked at.getBlockTraceFace(int range, boolean useLastBlock) Get the face that the player is looking at.Get the player's cardinal direction (N, W, NW, etc.).getSolidBlockTrace(int range) Get the point of the block being looked at.getWorld()Return the world that the player is on.booleanpassThroughForwardWall(int range) Pass through the wall that you are looking at.voidsetOnGround(Location searchPos) Set the actor on the ground.voidsetPosition(Vector3 pos, float pitch, float yaw) Move the player.static AsyncPlayerMethods inherited from class com.sk89q.worldedit.extension.platform.PlayerProxydispatchCUIEvent, getBasePlayer, getBlockInHand, getDisplayName, getFacet, getGameMode, getGroups, getInventoryBlockBag, getItemInHand, getLocale, getLocation, getName, getSessionKey, getState, getUniqueId, giveItem, hasPermission, print, print, printDebug, printError, printRaw, runAction, sendAnnouncements, sendFakeBlock, sendTitle, setGameMode, setLocation, setOffset, setPermission, togglePermission, trySetPosition, unwrapMethods inherited from class com.sk89q.worldedit.extension.platform.AbstractPlayerActorcanDestroyBedrock, checkPermission, clone, equals, getAllowedRegions, getAllowedRegions, getBlockOn, getBlockTrace, getBlockTrace, getBlockTraceFace, getCardinalDirection, getDisallowedRegions, getDisallowedRegions, getExtent, getLargestRegion, getRawMeta, hashCode, isAllowedToFly, isHoldingPickAxe, isPlayer, loadClipboardFromDisk, openFileOpenDialog, openFileSaveDialog, remove, setFlying, setSelection, trySetPositionMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extension.platform.Actorcancel, checkAction, confirm, decline, getLimit, printDebug, printError, printInfo, queueAction, runAsyncIfFree, runIfFreeMethods inherited from interface com.sk89q.worldedit.extension.platform.LocatablegetBlockLocation, setPositionMethods inherited from interface com.fastasyncworldedit.core.entity.MapMetadatabledeleteMeta, getAndSetMeta, getMeta, getMeta, hasMeta, putIfAbsent, setMetaMethods inherited from interface com.sk89q.worldedit.entity.PlayergetBlockIn, getSelection, getWorldForEditing, setSelection, unregisterMethods inherited from interface com.sk89q.worldedit.session.SessionOwnergetSession
- 
Constructor Details- 
AsyncPlayer
 
- 
- 
Method Details- 
wrap
- 
getWorldDescription copied from interface:PlayerReturn the world that the player is on.- Specified by:
- getWorldin interface- Player
- Overrides:
- getWorldin class- PlayerProxy
- Returns:
- the world
 
- 
findFreePositionDescription copied from interface:PlayerFind a position for the actor to stand that is not inside a block. Blocks above the player will be iteratively tested until there is a series of two free blocks. The actor will be teleported to that free position.- Specified by:
- findFreePositionin interface- Player
- Overrides:
- findFreePositionin class- PlayerProxy
- Parameters:
- searchPos- search position
 
- 
setOnGroundDescription copied from interface:PlayerSet the actor on the ground.- Specified by:
- setOnGroundin interface- Player
- Overrides:
- setOnGroundin class- PlayerProxy
- Parameters:
- searchPos- The location to start searching from
 
- 
findFreePositionpublic void findFreePosition()Description copied from interface:PlayerFind a position for the player to stand that is not inside a block. Blocks above the player will be iteratively tested until there is a series of two free blocks. The player will be teleported to that free position.- Specified by:
- findFreePositionin interface- Player
- Overrides:
- findFreePositionin class- PlayerProxy
 
- 
ascendLevelpublic boolean ascendLevel()Description copied from interface:PlayerGo up one level to the next free space above.- Specified by:
- ascendLevelin interface- Player
- Overrides:
- ascendLevelin class- PlayerProxy
- Returns:
- true if a spot was found
 
- 
descendLevelpublic boolean descendLevel()Description copied from interface:PlayerGo up one level to the next free space above.- Specified by:
- descendLevelin interface- Player
- Overrides:
- descendLevelin class- PlayerProxy
- Returns:
- true if a spot was found
 
- 
ascendToCeilingpublic boolean ascendToCeiling(int clearance) Description copied from interface:PlayerAscend to the ceiling above.- Specified by:
- ascendToCeilingin interface- Player
- Overrides:
- ascendToCeilingin class- PlayerProxy
- Parameters:
- clearance- How many blocks to leave above the player's head
- Returns:
- whether the player was moved
 
- 
ascendToCeilingpublic boolean ascendToCeiling(int clearance, boolean alwaysGlass) Description copied from interface:PlayerAscend to the ceiling above.- Specified by:
- ascendToCeilingin interface- Player
- Overrides:
- ascendToCeilingin class- PlayerProxy
- Parameters:
- clearance- How many blocks to leave above the player's head
- alwaysGlass- Always put glass under the player
- Returns:
- whether the player was moved
 
- 
ascendUpwardspublic boolean ascendUpwards(int distance) Description copied from interface:PlayerJust go up.- Specified by:
- ascendUpwardsin interface- Player
- Overrides:
- ascendUpwardsin class- PlayerProxy
- Parameters:
- distance- How far up to teleport
- Returns:
- whether the player was moved
 
- 
ascendUpwardspublic boolean ascendUpwards(int distance, boolean alwaysGlass) Description copied from interface:PlayerJust go up.- Specified by:
- ascendUpwardsin interface- Player
- Overrides:
- ascendUpwardsin class- PlayerProxy
- Parameters:
- distance- How far up to teleport
- alwaysGlass- Always put glass under the player
- Returns:
- whether the player was moved
 
- 
floatAtpublic void floatAt(int x, int y, int z, boolean alwaysGlass) Description copied from interface:PlayerMake the player float in the given blocks.- Specified by:
- floatAtin interface- Player
- Overrides:
- floatAtin class- PlayerProxy
- Parameters:
- x- The X coordinate of the block to float in
- y- The Y coordinate of the block to float in
- z- The Z coordinate of the block to float in
 
- 
setPositionDescription copied from interface:PlayerMove the player.- Parameters:
- pos- where to move them
- pitch- the pitch (up/down) of the player's view in degrees
- yaw- the yaw (left/right) of the player's view in degrees
 
- 
getBlockTraceDescription copied from interface:PlayerGet the point of the block being looked at. May return null. Will return the farthest away air block if useLastBlock is true and no other block is found.- Specified by:
- getBlockTracein interface- Player
- Overrides:
- getBlockTracein class- AbstractPlayerActor
- Parameters:
- range- how far to checks for blocks
- useLastBlock- try to return the last valid air block found
- Returns:
- point
 
- 
getBlockTraceFaceDescription copied from interface:PlayerGet the face that the player is looking at.- Specified by:
- getBlockTraceFacein interface- Player
- Overrides:
- getBlockTraceFacein class- AbstractPlayerActor
- Parameters:
- range- the range
- useLastBlock- try to return the last valid air block found
- Returns:
- a face
 
- 
getSolidBlockTraceDescription copied from interface:PlayerGet the point of the block being looked at. May return null.- Specified by:
- getSolidBlockTracein interface- Player
- Overrides:
- getSolidBlockTracein class- AbstractPlayerActor
- Parameters:
- range- How far to checks for blocks
- Returns:
- point
 
- 
getCardinalDirectionDescription copied from interface:PlayerGet the player's cardinal direction (N, W, NW, etc.). May return null.- Specified by:
- getCardinalDirectionin interface- Player
- Overrides:
- getCardinalDirectionin class- AbstractPlayerActor
- Returns:
- the direction
 
- 
passThroughForwardWallpublic boolean passThroughForwardWall(int range) Description copied from interface:PlayerPass through the wall that you are looking at.- Specified by:
- passThroughForwardWallin interface- Player
- Overrides:
- passThroughForwardWallin class- AbstractPlayerActor
- Parameters:
- range- How far to checks for blocks
- Returns:
- whether the player was pass through
 
 
-