Class LocationMaskedPlayerWrapper
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.extension.platform.PlayerProxy
com.fastasyncworldedit.core.wrappers.AsyncPlayer
com.fastasyncworldedit.core.wrappers.LocationMaskedPlayerWrapper
- 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
ConstructorsConstructorDescriptionLocationMaskedPlayerWrapper(Player parent, Location position) LocationMaskedPlayerWrapper(Player parent, Location position, boolean allowTeleport) -
Method Summary
Modifier 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.Get the location of this actor.voidsetOnGround(Location searchPos) Set the actor on the ground.voidsetPosition(Vector3 pos) Sets the position of this actor.voidsetPosition(Vector3 pos, float pitch, float yaw) Move the player.Methods inherited from class com.fastasyncworldedit.core.wrappers.AsyncPlayer
getBlockTrace, getBlockTraceFace, getCardinalDirection, getSolidBlockTrace, getWorld, passThroughForwardWall, wrapMethods inherited from class com.sk89q.worldedit.extension.platform.PlayerProxy
dispatchCUIEvent, getBasePlayer, getBlockInHand, getDisplayName, getFacet, getGameMode, getGroups, getInventoryBlockBag, getItemInHand, getLocale, 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.AbstractPlayerActor
canDestroyBedrock, 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.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extension.platform.Actor
cancel, checkAction, confirm, decline, getLimit, printDebug, printError, printInfo, queueAction, runAsyncIfFree, runIfFreeMethods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocationMethods inherited from interface com.fastasyncworldedit.core.entity.MapMetadatable
deleteMeta, getAndSetMeta, getMeta, getMeta, hasMeta, putIfAbsent, setMetaMethods inherited from interface com.sk89q.worldedit.entity.Player
getBlockIn, getSelection, getWorldForEditing, setSelection, unregisterMethods inherited from interface com.sk89q.worldedit.session.SessionOwner
getSession
-
Constructor Details
-
LocationMaskedPlayerWrapper
-
LocationMaskedPlayerWrapper
-
-
Method Details
-
getLocation
Description copied from interface:LocatableGet the location of this actor.- Specified by:
getLocationin interfaceLocatable- Overrides:
getLocationin classPlayerProxy- Returns:
- the location of the actor
-
setPosition
Description copied from interface:LocatableSets the position of this actor.- Parameters:
pos- where to move them
-
setPosition
Description copied from interface:PlayerMove the player.- Specified by:
setPositionin interfacePlayer- Overrides:
setPositionin classAsyncPlayer- Parameters:
pos- where to move thempitch- the pitch (up/down) of the player's view in degreesyaw- the yaw (left/right) of the player's view in degrees
-
findFreePosition
Description 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 interfacePlayer- Overrides:
findFreePositionin classAsyncPlayer- Parameters:
searchPos- search position
-
setOnGround
Description copied from interface:PlayerSet the actor on the ground.- Specified by:
setOnGroundin interfacePlayer- Overrides:
setOnGroundin classAsyncPlayer- Parameters:
searchPos- The location to start searching from
-
findFreePosition
public 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 interfacePlayer- Overrides:
findFreePositionin classAsyncPlayer
-
ascendLevel
public boolean ascendLevel()Description copied from interface:PlayerGo up one level to the next free space above.- Specified by:
ascendLevelin interfacePlayer- Overrides:
ascendLevelin classAsyncPlayer- Returns:
- true if a spot was found
-
descendLevel
public boolean descendLevel()Description copied from interface:PlayerGo up one level to the next free space above.- Specified by:
descendLevelin interfacePlayer- Overrides:
descendLevelin classAsyncPlayer- Returns:
- true if a spot was found
-
ascendToCeiling
public boolean ascendToCeiling(int clearance) Description copied from interface:PlayerAscend to the ceiling above.- Specified by:
ascendToCeilingin interfacePlayer- Overrides:
ascendToCeilingin classAsyncPlayer- Parameters:
clearance- How many blocks to leave above the player's head- Returns:
- whether the player was moved
-
ascendToCeiling
public boolean ascendToCeiling(int clearance, boolean alwaysGlass) Description copied from interface:PlayerAscend to the ceiling above.- Specified by:
ascendToCeilingin interfacePlayer- Overrides:
ascendToCeilingin classAsyncPlayer- Parameters:
clearance- How many blocks to leave above the player's headalwaysGlass- Always put glass under the player- Returns:
- whether the player was moved
-
ascendUpwards
public boolean ascendUpwards(int distance) Description copied from interface:PlayerJust go up.- Specified by:
ascendUpwardsin interfacePlayer- Overrides:
ascendUpwardsin classAsyncPlayer- Parameters:
distance- How far up to teleport- Returns:
- whether the player was moved
-
ascendUpwards
public boolean ascendUpwards(int distance, boolean alwaysGlass) Description copied from interface:PlayerJust go up.- Specified by:
ascendUpwardsin interfacePlayer- Overrides:
ascendUpwardsin classAsyncPlayer- Parameters:
distance- How far up to teleportalwaysGlass- Always put glass under the player- Returns:
- whether the player was moved
-
floatAt
public 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 interfacePlayer- Overrides:
floatAtin classAsyncPlayer- Parameters:
x- The X coordinate of the block to float iny- The Y coordinate of the block to float inz- The Z coordinate of the block to float in
-