PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\Player Class Reference
+ Inheritance diagram for pocketmine\Player:
+ Collaboration diagram for pocketmine\Player:

Public Member Functions

 isBanned ()
 
 setBanned ($value)
 
 isWhitelisted ()
 
 setWhitelisted ($value)
 
 getPlayer ()
 
 getFirstPlayed ()
 
 getLastPlayed ()
 
 hasPlayedBefore ()
 
 spawnTo (Player $player)
 
 getServer ()
 
 getRemoveFormat ()
 
 setRemoveFormat ($remove=true)
 
 canSee (Player $player)
 
 hidePlayer (Player $player)
 
 showPlayer (Player $player)
 
 canCollideWith (Entity $entity)
 
 isOnline ()
 
 isOp ()
 
 setOp ($value)
 
 isPermissionSet ($name)
 
 hasPermission ($name)
 
 addAttachment (Plugin $plugin, $name=null, $value=null)
 
 removeAttachment (PermissionAttachment $attachment)
 
 recalculatePermissions ()
 
 getEffectivePermissions ()
 
 __construct (SourceInterface $interface, $clientID, $ip, $port)
 
 removeAchievement ($achievementId)
 
 hasAchievement ($achievementId)
 
 isConnected ()
 
 getDisplayName ()
 
 setDisplayName ($name)
 
 getNameTag ()
 
 setNameTag ($name)
 
 getAddress ()
 
 getPort ()
 
 isSleeping ()
 
 unloadChunk ($x, $z)
 
 getSpawn ()
 
 checkACK ($identifier)
 
 handleACK ($identifier)
 
 sendChunk ($x, $z, $payload)
 
 dataPacket (DataPacket $packet, $needACK=false)
 
 directDataPacket (DataPacket $packet, $needACK=false)
 
 sleepOn (Vector3 $pos)
 
 setSpawn (Vector3 $pos)
 
 stopSleep ()
 
 checkSleep ()
 
 awardAchievement ($achievementId)
 
 getGamemode ()
 
 setGamemode ($gm)
 
 sendSettings ($nametags=true)
 
 isSurvival ()
 
 isCreative ()
 
 isAdventure ()
 
 getDrops ()
 
 addEntityMotion ($entityId, $x, $y, $z)
 
 addEntityMovement ($entityId, $x, $y, $z, $yaw, $pitch)
 
 updateMovement ()
 
 onUpdate ($currentTick)
 
 kick ($reason="")
 
 sendMessage ($message)
 
 close ($message="", $reason="generic reason")
 
 __debugInfo ()
 
 save ()
 
 getName ()
 
 kill ()
 
 setHealth ($amount)
 
 attack ($damage, $source=EntityDamageEvent::CAUSE_MAGIC)
 
 getData ()
 
 teleport (Vector3 $pos, $yaw=null, $pitch=null)
 
 getWindowId (Inventory $inventory)
 
 addWindow (Inventory $inventory, $forceId=null)
 
 removeWindow (Inventory $inventory)
 
 setMetadata ($metadataKey, MetadataValue $metadataValue)
 
 getMetadata ($metadataKey)
 
 hasMetadata ($metadataKey)
 
 removeMetadata ($metadataKey, Plugin $plugin)
 
 getInventory ()
 
 saveNBT ()
 
 despawnFrom (Player $player)
 
 close ()
 
 hasLineOfSight (Entity $entity)
 
 knockBack (Entity $attacker, $damage, $x, $z, $base=0.4)
 
 heal ($amount, $source=EntityRegainHealthEvent::CAUSE_MAGIC)
 
 entityBaseTick ($tickDiff=1)
 
 getLineOfSight ($maxDistance, $maxLength=0, array $transparent=[])
 
 getTargetBlock ($maxDistance, array $transparent=[])
 
 getSaveId ()
 
 getViewers ()
 
 getHealth ()
 
 setLastDamageCause ($type)
 
 getLastDamageCause ()
 
 getMaxHealth ()
 
 setMaxHealth ($amount)
 
 getDirectionVector ()
 
 scheduleUpdate ()
 
 setOnFire ($seconds)
 
 getDirection ()
 
 extinguish ()
 
 canTriggerWalking ()
 
 getBoundingBox ()
 
 fall ($fallDistance)
 
 handleLavaMovement ()
 
 getEyeHeight ()
 
 moveFlying ()
 
 onCollideWithPlayer (Human $entityPlayer)
 
 getPosition ()
 
 getLocation ()
 
 isInsideOfWater ()
 
 isInsideOfSolid ()
 
 move ($dx, $dy, $dz)
 
 setPositionAndRotation (Vector3 $pos, $yaw, $pitch)
 
 setRotation ($yaw, $pitch)
 
 setPosition (Vector3 $pos)
 
 getMotion ()
 
 setMotion (Vector3 $motion)
 
 isOnGround ()
 
 getId ()
 
 spawnToAll ()
 
 despawnFromAll ()
 
 __toString ()
 
 getYaw ()
 
 getPitch ()
 
 getLevel ()
 
 setLevel (Level $level)
 
 isValid ()
 
 setStrong ()
 
 setWeak ()
 
 getSide ($side, $step=1)
 
 setComponents ($x, $y, $z)
 
 getX ()
 
 getY ()
 
 getZ ()
 
 getFloorX ()
 
 getFloorY ()
 
 getFloorZ ()
 
 getRight ()
 
 getUp ()
 
 getForward ()
 
 getSouth ()
 
 getWest ()
 
 add ($x, $y=0, $z=0)
 
 subtract ($x=0, $y=0, $z=0)
 
 multiply ($number)
 
 divide ($number)
 
 ceil ()
 
 floor ()
 
 round ()
 
 abs ()
 
 distance (Vector3 $pos)
 
 distanceSquared (Vector3 $pos)
 
 maxPlainDistance ($x=0, $z=0)
 
 length ()
 
 lengthSquared ()
 
 normalize ()
 
 dot (Vector3 $v)
 
 cross (Vector3 $v)
 
 getIntermediateWithXValue (Vector3 $v, $x)
 
 getIntermediateWithYValue (Vector3 $v, $y)
 
 getIntermediateWithZValue (Vector3 $v, $z)
 

Static Public Member Functions

static createEntity ($type, FullChunk $chunk, Compound $nbt,...$args)
 
static registerEntity ($className, $force=false)
 
static fromObject (Vector3 $pos, Level $level=null)
 
static getOppositeSide ($side)
 

Public Attributes

const SURVIVAL = 0
 
const CREATIVE = 1
 
const ADVENTURE = 2
 
const SPECTATOR = 3
 
const VIEW = Player::SPECTATOR
 
const SURVIVAL_SLOTS = 36
 
const CREATIVE_SLOTS = 112
 
 $spawned = false
 
 $loggedIn = false
 
 $gamemode
 
 $lastBreak
 
 $blocked = false
 
 $achievements = []
 
 $lastCorrect
 
 $craftingType = 0
 
 $loginData = []
 
 $usedChunks = []
 
 $width = 0.6
 
 $length = 0.6
 
 $height = 1.8
 
 $eyeHeight = 1.62
 
const NETWORK_ID = -1
 
 $passenger = null
 
 $vehicle = null
 
 $chunkX
 
 $chunkZ
 
 $chunk
 
 $lastX = null
 
 $lastY = null
 
 $lastZ = null
 
 $motionX
 
 $motionY
 
 $motionZ
 
 $lastMotionX
 
 $lastMotionY
 
 $lastMotionZ
 
 $lastYaw
 
 $lastPitch
 
 $boundingBox
 
 $onGround
 
 $inBlock = false
 
 $positionChanged
 
 $motionChanged
 
 $dead
 
 $deadTicks = 0
 
 $keepMovement = false
 
 $fallDistance
 
 $ticksLived
 
 $lastUpdate
 
 $maxFireTicks
 
 $fireTicks
 
 $airTicks
 
 $namedtag
 
 $canCollide = true
 
 $isCollided = false
 
 $isCollidedHorizontally = false
 
 $isCollidedVertically = false
 
 $noDamageTicks
 
 $closed = false
 
 $yaw
 
 $pitch
 
 $level = null
 
const SIDE_DOWN = 0
 
const SIDE_UP = 1
 
const SIDE_NORTH = 2
 
const SIDE_SOUTH = 3
 
const SIDE_WEST = 4
 
const SIDE_EAST = 5
 
 $x
 
 $y
 
 $z
 

Static Public Attributes

static $entityCount = 1
 

Protected Member Functions

 initEntity ()
 
 sendNextChunk ()
 
 orderChunks ()
 
 getCreativeBlock (Item $item)
 
 processMovement ($currentTick)
 
 checkObstruction ($x, $y, $z)
 
 updateFallState ($distanceThisTick, $onGround)
 
 switchLevel (Level $targetLevel)
 
 checkBlockCollision ()
 

Protected Attributes

 $interface
 
 $windowCnt = 2
 
 $windows
 
 $windowIndex = []
 
 $sendIndex = 0
 
 $moveToSend = []
 
 $motionToSend = []
 
 $currentTransaction = null
 
 $isCrafting = false
 
 $lastMovement = 0
 
 $forceMovement = null
 
 $connected = true
 
 $ip
 
 $removeFormat = true
 
 $port
 
 $username
 
 $iusername
 
 $displayName
 
 $startAction = false
 
 $sleeping = null
 
 $clientID = null
 
 $stepHeight = 0.6
 
 $loadQueue = []
 
 $chunkACK = []
 
 $nextChunkOrderRun = 5
 
 $hiddenPlayers = []
 
 $newPosition
 
 $viewDistance
 
 $chunksPerTick
 
 $inAirTicks = 0
 
 $tasks = []
 
 $nameTag = "TESTIFICATE"
 
 $inventory
 
 $gravity = 0.08
 
 $drag = 0.02
 
 $attackTime = 0
 
 $hasSpawned = []
 
 $id
 
 $lastDamageCause = null
 
 $age = 0
 
 $ySize = 0
 
 $isStatic = false
 
 $fireProof
 
 $server
 
 $timings
 

Detailed Description

Main class that handles networking, recovery, and packet sending to the server part

Definition at line 120 of file Player.php.

Constructor & Destructor Documentation

pocketmine\Player::__construct ( SourceInterface  $interface,
  $clientID,
  $ip,
  $port 
)
Parameters
SourceInterface$interface
null$clientID
string$ip
integer$port

Definition at line 412 of file Player.php.

Member Function Documentation

pocketmine\math\Vector3::add (   $x,
  $y = 0,
  $z = 0 
)
inherited
Parameters
Vector3 | int$x
int$y
int$z
Returns
Vector3

Definition at line 94 of file Vector3.php.

Referenced by pocketmine\math\Vector3\subtract(), and pocketmine\level\Level\useBreakOn().

+ Here is the caller graph for this function:

pocketmine\Player::addAttachment ( Plugin  $plugin,
  $name = null,
  $value = null 
)
Parameters
Plugin$plugin
string$name
bool$value
Returns
permission

Implements pocketmine\permission\Permissible.

Definition at line 373 of file Player.php.

pocketmine\Player::addWindow ( Inventory  $inventory,
  $forceId = null 
)

Returns the created/existing window id

Parameters
Inventory$inventory
int$forceId
Returns
int

Definition at line 2707 of file Player.php.

References pocketmine\inventory\Inventory\open().

+ Here is the call graph for this function:

pocketmine\Player::awardAchievement (   $achievementId)
Parameters
string$achievementId
Returns
bool

Definition at line 889 of file Player.php.

pocketmine\Player::canSee ( Player  $player)
Parameters
Player$player
Returns
bool

Definition at line 285 of file Player.php.

References pocketmine\Player\getName().

Referenced by pocketmine\Player\spawnTo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\Player::checkACK (   $identifier)
Parameters
int$identifier
Returns
bool

Definition at line 556 of file Player.php.

pocketmine\Player::checkSleep ( )

WARNING: Do not use this, it's only for internal use. Changes to this function won't be recorded on the version.

Definition at line 860 of file Player.php.

pocketmine\Player::close (   $message = "",
  $reason = "generic reason" 
)
Parameters
string$messageMessage to be broadcasted
string$reasonReason showed in console

Definition at line 2369 of file Player.php.

static pocketmine\entity\Entity::createEntity (   $type,
FullChunk  $chunk,
Compound  $nbt,
  $args 
)
staticinherited
Parameters
int | string$type
FullChunk$chunk
Compound$nbt
$args
Returns
Entity

Definition at line 239 of file Entity.php.

Referenced by pocketmine\level\Level\dropItem().

+ Here is the caller graph for this function:

pocketmine\Player::dataPacket ( DataPacket  $packet,
  $needACK = false 
)

Sends an ordered DataPacket to the send buffer

Parameters
DataPacket$packet
bool$needACK
Returns
int|bool

Definition at line 745 of file Player.php.

Referenced by pocketmine\entity\Entity\despawnFrom(), pocketmine\inventory\ContainerInventory\onClose(), and pocketmine\inventory\ContainerInventory\onOpen().

+ Here is the caller graph for this function:

pocketmine\Player::directDataPacket ( DataPacket  $packet,
  $needACK = false 
)
Parameters
DataPacket$packet
bool$needACK
Returns
bool|int

Definition at line 771 of file Player.php.

pocketmine\Player::getAddress ( )

Gets the player IP address

Returns
string

Definition at line 505 of file Player.php.

pocketmine\entity\Entity::getDirectionVector ( )
inherited
Returns
Vector3

Definition at line 633 of file Entity.php.

Referenced by pocketmine\entity\Living\getLineOfSight().

+ Here is the caller graph for this function:

pocketmine\Player::getDisplayName ( )

Gets the "friendly" name to display of this player to use in the chat.

Returns
string

Definition at line 471 of file Player.php.

pocketmine\Player::getEffectivePermissions ( )
Returns
permission[]

Implements pocketmine\permission\Permissible.

Definition at line 401 of file Player.php.

pocketmine\Player::getFirstPlayed ( )
Returns
int|double

Implements pocketmine\IPlayer.

Definition at line 234 of file Player.php.

pocketmine\Player::getGamemode ( )
Returns
int

Definition at line 913 of file Player.php.

pocketmine\entity\Entity::getHealth ( )
inherited
Returns
int

Definition at line 376 of file Entity.php.

pocketmine\math\Vector3::getIntermediateWithXValue ( Vector3  $v,
  $x 
)
inherited

Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Parameters
Vector3$v
float$x
Returns
Vector3

Definition at line 241 of file Vector3.php.

pocketmine\math\Vector3::getIntermediateWithYValue ( Vector3  $v,
  $y 
)
inherited

Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Parameters
Vector3$v
float$y
Returns
Vector3

Definition at line 268 of file Vector3.php.

pocketmine\math\Vector3::getIntermediateWithZValue ( Vector3  $v,
  $z 
)
inherited

Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Parameters
Vector3$v
float$z
Returns
Vector3

Definition at line 295 of file Vector3.php.

pocketmine\entity\Human::getInventory ( )
inherited

Get the object related inventory

Returns
Inventory

Implements pocketmine\inventory\InventoryHolder.

Definition at line 49 of file Human.php.

pocketmine\entity\Entity::getLastDamageCause ( )
inherited
Returns
int|EntityDamageEvent|null

Definition at line 412 of file Entity.php.

pocketmine\Player::getLastPlayed ( )
Returns
int|double

Implements pocketmine\IPlayer.

Definition at line 238 of file Player.php.

pocketmine\entity\Living::getLineOfSight (   $maxDistance,
  $maxLength = 0,
array  $transparent = [] 
)
inherited
Parameters
int$maxDistance
int$maxLength
array$transparent
Returns
Block[]

Definition at line 207 of file Living.php.

References pocketmine\entity\Entity\getDirectionVector().

Referenced by pocketmine\entity\Living\getTargetBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\entity\Entity::getMaxHealth ( )
inherited
Returns
int

Definition at line 419 of file Entity.php.

Referenced by pocketmine\entity\Entity\setHealth().

+ Here is the caller graph for this function:

pocketmine\Player::getMetadata (   $metadataKey)

Returns a list of previously set metadata values from the implementing object's metadata store.

Parameters
string$metadataKey
Returns
MetadataValue[]

Implements pocketmine\metadata\Metadatable.

Definition at line 2741 of file Player.php.

pocketmine\Player::getName ( )

Gets the username

Returns
string

Implements pocketmine\command\CommandSender.

Definition at line 2469 of file Player.php.

Referenced by pocketmine\Player\canSee(), pocketmine\Player\hidePlayer(), and pocketmine\Player\showPlayer().

+ Here is the caller graph for this function:

pocketmine\Player::getNameTag ( )
Returns
string

Definition at line 485 of file Player.php.

pocketmine\Player::getPlayer ( )
Returns
Player|null

Implements pocketmine\IPlayer.

Definition at line 230 of file Player.php.

pocketmine\Player::getPort ( )
Returns
int

Definition at line 512 of file Player.php.

pocketmine\Player::getRemoveFormat ( )
Returns
bool

Definition at line 269 of file Player.php.

pocketmine\entity\Entity::getSaveId ( )
inherited

Returns the short save name

Returns
string

Definition at line 270 of file Entity.php.

pocketmine\Player::getServer ( )
Returns
Server

Implements pocketmine\command\CommandSender.

Definition at line 262 of file Player.php.

Referenced by pocketmine\inventory\BaseInventory\open().

+ Here is the caller graph for this function:

pocketmine\level\Position::getSide (   $side,
  $step = 1 
)
inherited

Returns a side Vector

Parameters
int$side
int$step
Returns
Position
Exceptions
LevelException

Definition at line 104 of file Position.php.

References pocketmine\level\Position\isValid().

+ Here is the call graph for this function:

pocketmine\Player::getSpawn ( )
Returns
Position

Definition at line 541 of file Player.php.

References pocketmine\level\Position\getLevel().

+ Here is the call graph for this function:

pocketmine\entity\Living::getTargetBlock (   $maxDistance,
array  $transparent = [] 
)
inherited
Parameters
int$maxDistance
array$transparent
Returns
Block

Definition at line 253 of file Living.php.

References pocketmine\entity\Living\getLineOfSight().

+ Here is the call graph for this function:

pocketmine\entity\Entity::getViewers ( )
inherited
Returns
Player[]

Definition at line 308 of file Entity.php.

pocketmine\Player::getWindowId ( Inventory  $inventory)
Parameters
Inventory$inventory
Returns
int

Definition at line 2691 of file Player.php.

Referenced by pocketmine\inventory\ContainerInventory\onClose(), and pocketmine\inventory\ContainerInventory\onOpen().

+ Here is the caller graph for this function:

pocketmine\Player::hasAchievement (   $achievementId)
Parameters
string$achievementId
Returns
bool

Definition at line 445 of file Player.php.

pocketmine\Player::hasMetadata (   $metadataKey)

Tests to see whether the implementing object contains the given metadata value in its metadata store.

Parameters
string$metadataKey
Returns
boolean

Implements pocketmine\metadata\Metadatable.

Definition at line 2745 of file Player.php.

pocketmine\Player::hasPermission (   $name)
Parameters
permission\Permission | string$name
Returns
bool

Implements pocketmine\permission\Permissible.

Definition at line 362 of file Player.php.

pocketmine\Player::hasPlayedBefore ( )
Returns
mixed

Implements pocketmine\IPlayer.

Definition at line 242 of file Player.php.

pocketmine\Player::hidePlayer ( Player  $player)
Parameters
Player$player

Definition at line 292 of file Player.php.

References pocketmine\Player\getName().

+ Here is the call graph for this function:

pocketmine\Player::isBanned ( )
Returns
bool

Implements pocketmine\IPlayer.

Definition at line 206 of file Player.php.

pocketmine\Player::isConnected ( )
Returns
bool

Definition at line 462 of file Player.php.

pocketmine\Player::isOnline ( )
Returns
bool

Implements pocketmine\IPlayer.

Definition at line 320 of file Player.php.

Referenced by pocketmine\Player\showPlayer().

+ Here is the caller graph for this function:

pocketmine\Player::isOp ( )
Returns
bool

Implements pocketmine\permission\ServerOperator.

Definition at line 327 of file Player.php.

pocketmine\Player::isPermissionSet (   $name)
Parameters
permission\Permission | string$name
Returns
bool

Implements pocketmine\permission\Permissible.

Definition at line 353 of file Player.php.

pocketmine\Player::isSleeping ( )
Returns
bool

Definition at line 519 of file Player.php.

pocketmine\level\Position::isValid ( )
inherited

Checks if this object has a valid reference to a Level

Returns
bool

Definition at line 66 of file Position.php.

Referenced by pocketmine\level\Position\getSide(), and pocketmine\block\Block\getSide().

+ Here is the caller graph for this function:

pocketmine\Player::isWhitelisted ( )
Returns
bool

Implements pocketmine\IPlayer.

Definition at line 218 of file Player.php.

pocketmine\Player::kick (   $reason = "")

Kicks a player from the server

Parameters
string$reason
Returns
bool

Definition at line 2332 of file Player.php.

pocketmine\math\Vector3::normalize ( )
inherited
Returns
Vector3

Definition at line 211 of file Vector3.php.

pocketmine\Player::recalculatePermissions ( )
Returns
void

Implements pocketmine\permission\Permissible.

Definition at line 384 of file Player.php.

pocketmine\Player::removeAchievement (   $achievementId)
Parameters
string$achievementId

Definition at line 434 of file Player.php.

pocketmine\Player::removeAttachment ( PermissionAttachment  $attachment)
Parameters
PermissionAttachment$attachment

Implements pocketmine\permission\Permissible.

Definition at line 380 of file Player.php.

pocketmine\Player::removeMetadata (   $metadataKey,
Plugin  $owningPlugin 
)

Removes the given metadata value from the implementing object's metadata store.

Parameters
string$metadataKey
Plugin$owningPlugin
Returns
void

Implements pocketmine\metadata\Metadatable.

Definition at line 2749 of file Player.php.

pocketmine\Player::save ( )

Handles player data saving

Definition at line 2436 of file Player.php.

References pocketmine\level\Position\getLevel().

+ Here is the call graph for this function:

pocketmine\Player::sendMessage (   $message)

Sends a direct chat message to a player

Parameters
string$message

Implements pocketmine\command\CommandSender.

Definition at line 2350 of file Player.php.

pocketmine\Player::sendSettings (   $nametags = true)

Sends all the option flags

WARNING: Do not use this, it's only for internal use. Changes to this function won't be recorded on the version.

Parameters
bool$nametags

Definition at line 975 of file Player.php.

pocketmine\Player::setBanned (   $banned)
Parameters
bool$banned

Implements pocketmine\IPlayer.

Definition at line 210 of file Player.php.

pocketmine\level\Position::setComponents (   $x,
  $y,
  $z 
)
inherited
Parameters
$x
$y
$z
Returns
Position

Definition at line 123 of file Position.php.

pocketmine\Player::setDisplayName (   $name)
Parameters
string$name

Definition at line 478 of file Player.php.

pocketmine\Player::setGamemode (   $gm)

Sets the gamemode, and if needed, kicks the player TODO: Check if Mojang adds the ability to change gamemode without kicking players

Parameters
int$gm
Returns
bool

Definition at line 925 of file Player.php.

pocketmine\entity\Entity::setLastDamageCause (   $type)
inherited
Parameters
int | EntityDamageEvent$type

Definition at line 405 of file Entity.php.

pocketmine\entity\Entity::setMaxHealth (   $amount)
inherited
Parameters
int$amount

Definition at line 426 of file Entity.php.

pocketmine\Player::setMetadata (   $metadataKey,
MetadataValue  $newMetadataValue 
)

Sets a metadata value in the implementing object's metadata store.

Parameters
string$metadataKey
MetadataValue$newMetadataValue
Returns
void

Implements pocketmine\metadata\Metadatable.

Definition at line 2737 of file Player.php.

pocketmine\Player::setNameTag (   $name)
Parameters
string$name

Definition at line 492 of file Player.php.

pocketmine\Player::setOp (   $value)
Parameters
bool$value

Implements pocketmine\permission\ServerOperator.

Definition at line 334 of file Player.php.

pocketmine\Player::setRemoveFormat (   $remove = true)
Parameters
bool$remove

Definition at line 276 of file Player.php.

pocketmine\Player::setSpawn ( Vector3  $pos)

Sets the spawnpoint of the player (and the compass direction) to a Vector3, or set it on another world with a Position object

Parameters
Vector3 | Position$pos

Definition at line 830 of file Player.php.

pocketmine\level\Position::setStrong ( )
inherited

Marks the level reference as strong so it won't be collected by the garbage collector.

Deprecated:
Returns
bool

Definition at line 78 of file Position.php.

pocketmine\level\Position::setWeak ( )
inherited

Marks the level reference as weak so it won't have effect against the garbage collector decision.

Deprecated:
Returns
bool

Definition at line 90 of file Position.php.

pocketmine\Player::setWhitelisted (   $value)
Parameters
bool$value

Implements pocketmine\IPlayer.

Definition at line 222 of file Player.php.

pocketmine\Player::showPlayer ( Player  $player)
Parameters
Player$player

Definition at line 303 of file Player.php.

References pocketmine\Player\getName(), pocketmine\Player\isOnline(), and pocketmine\Player\spawnTo().

+ Here is the call graph for this function:

pocketmine\Player::sleepOn ( Vector3  $pos)
Parameters
Vector3$pos
Returns
boolean

Definition at line 796 of file Player.php.

pocketmine\Player::spawnTo ( Player  $player)
Parameters
Player$player

Definition at line 253 of file Player.php.

References pocketmine\Player\canSee(), and pocketmine\level\Position\getLevel().

Referenced by pocketmine\Player\showPlayer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pocketmine\math\Vector3::subtract (   $x = 0,
  $y = 0,
  $z = 0 
)
inherited
Parameters
Vector3 | int$x
int$y
int$z
Returns
Vector3

Definition at line 109 of file Vector3.php.

References pocketmine\math\Vector3\add().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: