PocketMine-MP 5.35.1 git-e32e836dad793a3a3c8ddd8927c00e112b1e576a
|
Static Public Member Functions | |
static | isValidUserName (?string $name) |
static | nextRuntimeId () |
static | parseSkinNBT (CompoundTag $nbt) |
Public Attributes | |
AxisAlignedBB | $boundingBox |
int | $deadTicks = 0 |
float | $fallDistance = 0.0 |
bool | $isCollided = false |
bool | $isCollidedHorizontally = false |
bool | $isCollidedVertically = false |
bool | $keepMovement = false |
int | $lastUpdate |
int | $noDamageTicks = 0 |
bool | $onGround = false |
EntitySizeInfo | $size |
bool | $spawned = false |
int | $ticksLived = 0 |
const | DEFAULT_FLIGHT_SPEED_MULTIPLIER = 0.05 |
const | DEFAULT_KNOCKBACK_FORCE = 0.4 |
const | DEFAULT_KNOCKBACK_VERTICAL_LIMIT = 0.4 |
const | MOTION_THRESHOLD = 0.00001 |
const | TAG_FIRST_PLAYED = "firstPlayed" |
const | TAG_LAST_KNOWN_XUID = "LastKnownXUID" |
const | TAG_LAST_PLAYED = "lastPlayed" |
const | TAG_LEVEL = "Level" |
const | TAG_MOTION = "Motion" |
const | TAG_POS = "Pos" |
const | TAG_ROTATION = "Rotation" |
Main class that handles networking, recovery, and packet sending to the server part
Definition at line 174 of file Player.php.
pocketmine\player\Player::__construct | ( | Server | $server, |
NetworkSession | $session, | ||
PlayerInfo | $playerInfo, | ||
bool | $authenticated, | ||
Location | $spawnLocation, | ||
?CompoundTag | $namedtag ) |
Definition at line 319 of file Player.php.
pocketmine\player\Player::__destruct | ( | ) |
Reimplemented from pocketmine\entity\Entity.
Definition at line 2438 of file Player.php.
pocketmine\player\Player::__debugInfo | ( | ) |
Definition at line 2434 of file Player.php.
|
inherited |
Definition at line 1746 of file Entity.php.
|
protected |
Definition at line 2541 of file Player.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
|
protectedinherited |
Reimplemented from pocketmine\entity\Entity.
Definition at line 203 of file Living.php.
|
protected |
Definition at line 2713 of file Player.php.
|
inherited |
Adds the given values to the entity's motion vector.
Definition at line 1457 of file Entity.php.
Referenced by pocketmine\entity\effect\LevitationEffect\applyEffect().
|
protected |
PlayerInventoryWindow[] | $windows |
Definition at line 2860 of file Player.php.
|
protectedinherited |
Applies effects from consuming the object. This shouldn't do any can-consume checks (those are expected to be handled by the caller).
Reimplemented from pocketmine\entity\Living.
|
inherited |
Called prior to EntityDamageEvent execution to apply modifications to the event's damage, such as reduction due to effects or armour.
Reimplemented from pocketmine\entity\Living.
|
protectedinherited |
Definition at line 840 of file Entity.php.
|
protectedinherited |
Definition at line 720 of file Living.php.
|
protected |
Called after EntityDamageEvent execution to apply post-hurt effects, such as reducing absorption or modifying armour durability. This will not be called by damage sources causing death.
Reimplemented from pocketmine\entity\Human.
Definition at line 2609 of file Player.php.
pocketmine\player\Player::attack | ( | EntityDamageEvent | $source | ) |
Reimplemented from pocketmine\entity\Living.
Definition at line 2615 of file Player.php.
Performs a left-click (attack) action on the block.
Definition at line 1863 of file Player.php.
pocketmine\player\Player::attackEntity | ( | Entity | $entity | ) |
Attacks the given entity with the currently-held item. TODO: move this up the class hierarchy
Definition at line 1965 of file Player.php.
pocketmine\player\Player::breakBlock | ( | Vector3 | $pos | ) |
Breaks the block at the given position using the currently-held item.
Definition at line 1914 of file Player.php.
pocketmine\player\Player::broadcastAnimation | ( | Animation | $animation, |
?array | $targets = null ) |
Player[] | null | $targets |
Reimplemented from pocketmine\entity\Entity.
Definition at line 2660 of file Player.php.
|
protectedinherited |
Definition at line 819 of file Entity.php.
|
protectedinherited |
Definition at line 801 of file Entity.php.
pocketmine\player\Player::broadcastSound | ( | Sound | $sound, |
?array | $targets = null ) |
Broadcasts a sound caused by the entity. If the entity is considered "silent", the sound will be dropped.
Player[] | null | $targets |
Reimplemented from pocketmine\entity\Entity.
Definition at line 2668 of file Player.php.
Referenced by pocketmine\item\Armor\onClickAir().
|
protected |
Reimplemented from pocketmine\entity\Living.
Definition at line 1476 of file Player.php.
pocketmine\player\Player::canBeCollidedWith | ( | ) |
Reimplemented from pocketmine\entity\Entity.
Definition at line 627 of file Player.php.
pocketmine\player\Player::canBeMovedByCurrents | ( | ) |
Returns whether this entity can be moved by currents in liquids.
Reimplemented from pocketmine\entity\Entity.
Definition at line 1333 of file Player.php.
pocketmine\player\Player::canBeRenamed | ( | ) |
Returns whether players can rename this entity using a name tag. Note that plugins can still name entities using setNameTag().
Reimplemented from pocketmine\entity\Living.
Definition at line 695 of file Player.php.
pocketmine\player\Player::canBreathe | ( | ) |
Returns whether the entity can currently breathe.
Reimplemented from pocketmine\entity\Living.
Definition at line 1564 of file Player.php.
|
inherited |
Returns whether the entity is able to climb blocks such as ladders or vines.
Definition at line 375 of file Entity.php.
|
inherited |
Returns whether this entity is climbing a block. By default this is only true if the entity is climbing a ladder or vine or similar block.
Definition at line 390 of file Entity.php.
pocketmine\player\Player::canCollideWith | ( | Entity | $entity | ) |
Reimplemented from pocketmine\entity\Entity.
Definition at line 623 of file Player.php.
pocketmine\player\Player::canEat | ( | ) |
Returns whether the Human can eat food. This may return a different result than HungerManager::isHungry()
, as HungerManager only handles the hunger bar.
Reimplemented from pocketmine\entity\Human.
Definition at line 1560 of file Player.php.
pocketmine\player\Player::canInteract | ( | Vector3 | $pos, |
float | $maxDistance, | ||
float | $maxDiff = M_SQRT3 / 2 ) |
Returns whether the player can interact with the specified position. This checks distance and direction.
float | $maxDiff | defaults to half of the 3D diagonal width of a block |
Definition at line 1573 of file Player.php.
pocketmine\player\Player::canSaveWithChunk | ( | ) |
Returns whether this entity will be saved when its chunk is unloaded.
Reimplemented from pocketmine\entity\Entity.
Definition at line 2443 of file Player.php.
pocketmine\player\Player::canSee | ( | Player | $player | ) |
Definition at line 601 of file Player.php.
pocketmine\player\Player::changeSkin | ( | Skin | $skin, |
string | $newSkinName, | ||
string | $oldSkinName ) |
Called when a player changes their skin. Plugin developers should not use this, use setSkin() and sendSkin() instead.
Definition at line 714 of file Player.php.
pocketmine\player\Player::chat | ( | string | $message | ) |
Sends a chat message as this player. If the message begins with a / (forward-slash) it will be treated as a command.
Definition at line 1589 of file Player.php.
|
protectedinherited |
Definition at line 1335 of file Entity.php.
|
protected |
Reimplemented from pocketmine\entity\Entity.
Definition at line 1311 of file Player.php.
|
protected |
Definition at line 784 of file Player.php.
|
protected |
Definition at line 1337 of file Player.php.
|
protectedinherited |
Definition at line 868 of file Entity.php.
|
finalinherited |
Closes the entity and frees attached references.
WARNING: Entities are unusable after this has been executed!
Definition at line 1628 of file Entity.php.
pocketmine\player\Player::closeAllForms | ( | ) |
Closes the current viewing form and forms in queue.
Definition at line 2285 of file Player.php.
pocketmine\player\Player::consumeHeldItem | ( | ) |
Consumes the currently-held item.
Definition at line 1735 of file Player.php.
|
inherited |
Causes the mob to consume the given Consumable object, applying applicable effects, health bonuses, food bonuses, etc.
Reimplemented from pocketmine\entity\Living.
Definition at line 1897 of file Player.php.
|
inherited |
Damages the worn armour according to the amount of damage given. Each 4 points (rounded down) deals 1 damage point to each armour piece, but never less than 1 total.
Definition at line 522 of file Living.php.
|
protectedinherited |
Called to deal damage to entities when they are on fire.
Definition at line 758 of file Entity.php.
|
inherited |
Definition at line 1575 of file Entity.php.
|
inherited |
Definition at line 1589 of file Entity.php.
|
protected |
Called when the entity is disposed, after all events have been fired. This should be used to perform destructive circular object references and things which could impact memory usage.
It is expected that the object is unusable after this is called.
Reimplemented from pocketmine\entity\Human.
Definition at line 2423 of file Player.php.
pocketmine\player\Player::disconnect | ( | Translatable|string | $reason, |
Translatable|string|null | $quitMessage = null, | ||
Translatable|string|null | $disconnectScreenMessage = null ) |
Removes the player from the server. This cannot be cancelled. This is used for remote disconnects and for uninterruptible disconnects (for example, when the server shuts down).
Note for plugin developers: Prefer kick() instead of this method. That way other plugins can have a say in whether the player is removed or not.
Note for internals developers: Do not call this from network sessions. It will cause a feedback loop.
Translatable | string | $reason | Shown in the server log - this should be a short one-line message |
Translatable | string | null | $quitMessage | Message to broadcast to online players (null will use default) |
Translatable | string | null | $disconnectScreenMessage | Shown on the player's disconnection screen (null will use the reason) |
Definition at line 2349 of file Player.php.
|
protectedinherited |
Ticks the entity's air supply, consuming it when underwater and regenerating it when out of water.
Definition at line 763 of file Living.php.
pocketmine\player\Player::doChunkRequests | ( | ) |
Ticks the chunk-requesting mechanism.
Definition at line 1080 of file Player.php.
pocketmine\player\Player::doFirstSpawn | ( | ) |
Called by the network system when the pre-spawn sequence is completed (e.g. after sending spawn chunks). This fires join events and broadcasts join messages to other online players.
Definition at line 942 of file Player.php.
|
protectedinherited |
Definition at line 608 of file Living.php.
|
protectedinherited |
Definition at line 734 of file Entity.php.
pocketmine\player\Player::dropItem | ( | Item | $item | ) |
Drops an item on the ground in front of the player.
Definition at line 2160 of file Player.php.
pocketmine\player\Player::emote | ( | string | $emoteId | ) |
Reimplemented from pocketmine\entity\Human.
Definition at line 2144 of file Player.php.
|
protectedinherited |
Definition at line 664 of file Living.php.
|
protectedinherited |
Reimplemented from pocketmine\entity\Living.
|
inherited |
Definition at line 722 of file Entity.php.
|
inherited |
Flags the entity to be removed from the world on the next tick.
Definition at line 1607 of file Entity.php.
|
inherited |
Definition at line 236 of file Living.php.
|
inherited |
Returns the number of ticks remaining in the entity's air supply. Note that the entity may survive longer than this amount of time without damage due to enchantments such as Respiration.
Definition at line 822 of file Living.php.
|
finalprotectedinherited |
Definition at line 1694 of file Entity.php.
pocketmine\player\Player::getAllowFlight | ( | ) |
Returns whether the player is allowed to toggle its flight state.
If false, the player is locked in its current flight mode (flying/not flying), and attempts by the player to enter or exit flight mode will be prevented.
Definition at line 495 of file Player.php.
|
inherited |
Definition at line 433 of file Living.php.
|
inherited |
Returns how many armour points this mob has. Armour points provide a percentage reduction to damage. For mobs which can wear armour, this should return the sum total of the armour points provided by their equipment.
Definition at line 412 of file Living.php.
|
inherited |
Definition at line 633 of file Entity.php.
|
protectedinherited |
Definition at line 1313 of file Entity.php.
|
protectedinherited |
Yields all the blocks whose full-cube areas are intersected by the entity's AABB.
@phpstan-return \Generator<int, Block, void, void>
Definition at line 1291 of file Entity.php.
|
inherited |
Definition at line 306 of file Entity.php.
pocketmine\player\Player::getCraftingGrid | ( | ) |
Definition at line 2730 of file Player.php.
pocketmine\player\Player::getCreativeInventory | ( | ) |
Returns the creative inventory shown to the player. Unless changed by a plugin, this is usually the same for all players.
Definition at line 2738 of file Player.php.
pocketmine\player\Player::getCurrentWindow | ( | ) |
Returns the inventory the player is currently viewing. This might be a chest, furnace, or any other container.
Definition at line 2811 of file Player.php.
pocketmine\player\Player::getCursorInventory | ( | ) |
Definition at line 2726 of file Player.php.
pocketmine\player\Player::getDeathPosition | ( | ) |
Definition at line 1091 of file Player.php.
|
inherited |
Definition at line 970 of file Entity.php.
|
inherited |
Definition at line 961 of file Entity.php.
|
finalprotectedinherited |
Definition at line 1682 of file Entity.php.
pocketmine\player\Player::getDisplayName | ( | ) |
Returns the "friendly" display name of this player to use in the chat.
Reimplemented from pocketmine\entity\Living.
Definition at line 684 of file Player.php.
pocketmine\player\Player::getDrops | ( | ) |
Reimplemented from pocketmine\entity\Human.
Definition at line 1295 of file Player.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Definition at line 335 of file Living.php.
|
inherited |
Definition at line 1117 of file Entity.php.
|
inherited |
Definition at line 1121 of file Entity.php.
|
inherited |
Definition at line 1082 of file Entity.php.
|
inherited |
Definition at line 698 of file Entity.php.
pocketmine\player\Player::getFirstPlayed | ( | ) |
TODO: not sure this should be nullable
Implements pocketmine\player\IPlayer.
Definition at line 458 of file Player.php.
pocketmine\player\Player::getFlightSpeedMultiplier | ( | ) |
Returns the player's flight speed multiplier.
Normal flying speed in blocks-per-tick is (multiplier * 10) blocks per tick. When sprint-flying, this is doubled to 20.
If set to zero, the player will not be able to move in the xz plane when flying. Negative values will invert the controls.
Definition at line 565 of file Player.php.
|
inherited |
Definition at line 756 of file Living.php.
pocketmine\player\Player::getGamemode | ( | ) |
Definition at line 1199 of file Player.php.
|
inherited |
Definition at line 823 of file Entity.php.
|
inherited |
Definition at line 590 of file Entity.php.
|
inherited |
Returns the highest level of the specified enchantment on any armour piece that the entity is currently wearing.
Definition at line 424 of file Living.php.
|
inherited |
Definition at line 942 of file Entity.php.
|
inherited |
Definition at line 1507 of file Entity.php.
pocketmine\player\Player::getInAirTicks | ( | ) |
Definition at line 1349 of file Player.php.
|
protectedinherited |
Returns the percentage by which the entity's velocity is reduced per tick when moving through air. The entity's velocity is multiplied by 1 minus this value.
Reimplemented from pocketmine\entity\Entity.
Definition at line 138 of file Living.php.
|
protectedinherited |
Returns the downwards acceleration of the entity when falling, in blocks/tick².
Reimplemented from pocketmine\entity\Entity.
Definition at line 140 of file Living.php.
|
protectedinherited |
Reimplemented from pocketmine\entity\Entity.
|
inherited |
Implements pocketmine\inventory\InventoryHolder.
pocketmine\player\Player::getItemCooldownExpiry | ( | Item | $item | ) |
Returns the server tick on which the player's cooldown period expires for the given item.
Definition at line 760 of file Player.php.
pocketmine\player\Player::getItemUseDuration | ( | ) |
Returns how long the player has been using their currently-held item for. Used for determining arrow shoot force for bows.
Definition at line 753 of file Player.php.
References pocketmine\server().
|
inherited |
Returns the initial upwards velocity of a jumping entity in blocks/tick, including additional velocity due to effects.
Definition at line 366 of file Living.php.
pocketmine\player\Player::getLanguage | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 706 of file Player.php.
|
inherited |
Definition at line 629 of file Entity.php.
pocketmine\player\Player::getLastPlayed | ( | ) |
TODO: not sure this should be nullable
Implements pocketmine\player\IPlayer.
Definition at line 465 of file Player.php.
pocketmine\player\Player::getLeaveMessage | ( | ) |
Definition at line 418 of file Player.php.
|
inherited |
true[] | $transparent | @phpstan-param array<int, true> $transparent |
Definition at line 878 of file Living.php.
pocketmine\player\Player::getLocale | ( | ) |
Returns the player's locale, e.g. en_US.
Definition at line 702 of file Player.php.
|
inherited |
Definition at line 1361 of file Entity.php.
|
inherited |
Returns the maximum amount of air ticks the entity's air supply can contain.
Definition at line 837 of file Living.php.
|
inherited |
Reimplemented from pocketmine\entity\Entity.
Definition at line 228 of file Living.php.
|
inherited |
Definition at line 1431 of file Entity.php.
|
inherited |
Definition at line 304 of file Living.php.
pocketmine\player\Player::getName | ( | ) |
Gets the username
Reimplemented from pocketmine\entity\Human.
Definition at line 677 of file Player.php.
Referenced by pocketmine\command\defaults\ListCommand\execute().
|
inherited |
Definition at line 250 of file Entity.php.
|
inherited |
Definition at line 637 of file Entity.php.
pocketmine\player\Player::getNetworkSession | ( | ) |
Definition at line 667 of file Player.php.
|
inherited |
Reimplemented from pocketmine\entity\Entity.
|
inherited |
|
inherited |
Reimplemented from pocketmine\entity\Entity.
|
inherited |
Returns the owning entity, or null if the entity was not found.
Definition at line 412 of file Entity.php.
References pocketmine\server().
|
inherited |
Returns the entity ID of the owning entity, or null if the entity doesn't have an owner.
Definition at line 405 of file Entity.php.
pocketmine\player\Player::getPermanentWindows | ( | ) |
Definition at line 2878 of file Player.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Returns the item that players will equip when middle-clicking on this entity.
Reimplemented in pocketmine\entity\object\EndCrystal, pocketmine\entity\object\FallingBlock, pocketmine\entity\object\Painting, pocketmine\entity\object\PrimedTNT, pocketmine\entity\Squid, pocketmine\entity\Villager, and pocketmine\entity\Zombie.
Definition at line 1600 of file Entity.php.
pocketmine\player\Player::getPlayerInfo | ( | ) |
Returns an object containing information about the player, such as their username, skin, and misc extra client-specific data.
Definition at line 434 of file Player.php.
|
inherited |
Definition at line 1357 of file Entity.php.
pocketmine\player\Player::getSaveData | ( | ) |
Definition at line 2451 of file Player.php.
|
inherited |
Definition at line 294 of file Entity.php.
|
inherited |
Definition at line 285 of file Entity.php.
pocketmine\player\Player::getScreenLineHeight | ( | ) |
Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination such as in the /help command. @phpstan-return positive-int
Implements pocketmine\command\CommandSender.
Definition at line 590 of file Player.php.
pocketmine\player\Player::getServer | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 586 of file Player.php.
|
inherited |
Definition at line 323 of file Entity.php.
|
inherited |
|
inherited |
Reimplemented from pocketmine\entity\Living.
pocketmine\player\Player::getSpawn | ( | ) |
Definition at line 1118 of file Player.php.
References pocketmine\server().
|
inherited |
Definition at line 1275 of file Entity.php.
|
inherited |
true[] | $transparent | @phpstan-param array<int, true> $transparent |
Definition at line 919 of file Living.php.
|
inherited |
Returns the entity's target entity, or null if not found. This is used for things like hostile mobs attacking entities, and for fishing rods reeling hit entities in.
Definition at line 443 of file Entity.php.
References pocketmine\server().
|
inherited |
Returns the entity ID of the entity's target, or null if it doesn't have a target.
Definition at line 435 of file Entity.php.
pocketmine\player\Player::getUniqueId | ( | ) |
Returns the player's UUID. This should be the preferred method to identify a player. It does not change if the player changes their username.
All players will have a UUID, regardless of whether they are logged into Xbox Live or not. However, note that non-XBL players can fake their UUIDs.
Reimplemented from pocketmine\entity\Human.
Definition at line 451 of file Player.php.
pocketmine\player\Player::getUsedChunks | ( | ) |
Definition at line 1058 of file Player.php.
pocketmine\player\Player::getUsedChunkStatus | ( | int | $chunkX, |
int | $chunkZ ) |
Returns a usage status of the given chunk, or null if the player is not using the given chunk.
Definition at line 1065 of file Player.php.
pocketmine\player\Player::getViewDistance | ( | ) |
Definition at line 636 of file Player.php.
|
inherited |
Definition at line 1514 of file Entity.php.
|
inherited |
Definition at line 1365 of file Entity.php.
pocketmine\player\Player::getXpDropAmount | ( | ) |
Returns the amount of XP this mob will drop on death.
Reimplemented from pocketmine\entity\Human.
Definition at line 1303 of file Player.php.
pocketmine\player\Player::getXuid | ( | ) |
If the player is logged into Xbox Live, returns their Xbox user ID (XUID) as a string. Returns an empty string if the player is not logged into Xbox Live.
Definition at line 440 of file Player.php.
pocketmine\player\Player::handleMovement | ( | Vector3 | $newPos | ) |
Attempts to move the player to the given coordinates. Unless you have some particularly specialized logic, you probably want to use teleport() instead of this.
This is used for processing movements sent by the player over network.
Vector3 | $newPos | Coordinates of the player's feet, centered horizontally at the base of their bounding box. |
Definition at line 1361 of file Player.php.
pocketmine\player\Player::hasAutoJump | ( | ) |
Definition at line 576 of file Player.php.
pocketmine\player\Player::hasBlockCollision | ( | ) |
Returns whether blocks may obstruct the player's movement. If false, the player can move through any block unobstructed.
Definition at line 518 of file Player.php.
pocketmine\player\Player::hasFiniteResources | ( | ) |
TODO: make this a dynamic ability instead of being hardcoded
Definition at line 1291 of file Player.php.
Referenced by pocketmine\entity\object\Painting\onDeath().
|
inherited |
Definition at line 832 of file Entity.php.
pocketmine\player\Player::hasItemCooldown | ( | Item | $item | ) |
Returns whether the player has a cooldown period left before it can use the given item again.
Definition at line 768 of file Player.php.
|
inherited |
Returns whether the entity needs a movement update on the next tick.
Reimplemented in pocketmine\entity\object\Painting, and pocketmine\entity\projectile\Projectile.
Definition at line 1072 of file Entity.php.
|
inherited |
Returns whether clients may predict this entity's behaviour and movement. Used for things like water movement, burning, and movement smoothing (interpolation).
Definition at line 337 of file Entity.php.
|
inherited |
Returns the permission value if overridden, or the default value if not
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\player\Player::hasPlayedBefore | ( | ) |
Implements pocketmine\player\IPlayer.
Definition at line 469 of file Player.php.
pocketmine\player\Player::hasReceivedChunk | ( | int | $chunkX, |
int | $chunkZ ) |
Returns whether the target chunk has been sent to this player.
Definition at line 1072 of file Player.php.
pocketmine\player\Player::hasValidCustomSpawn | ( | ) |
Definition at line 1128 of file Player.php.
|
inherited |
Definition at line 555 of file Entity.php.
pocketmine\player\Player::hidePlayer | ( | Player | $player | ) |
Definition at line 605 of file Player.php.
|
protected |
Reimplemented from pocketmine\entity\Human.
Definition at line 373 of file Player.php.
|
protected |
For Human entities which are not players, sets their properties such as nametag, skin and UUID from NBT.
Reimplemented from pocketmine\entity\Human.
Definition at line 359 of file Player.php.
Touches the block at the given position with the currently-held item.
Definition at line 1940 of file Player.php.
Interacts with the given entity using the currently-held item.
Definition at line 2050 of file Player.php.
|
protected |
Definition at line 1203 of file Player.php.
pocketmine\player\Player::isAdventure | ( | bool | $literal = false | ) |
NOTE: Because Adventure and Spectator Mode share some similar behaviour, this method will also return true if the player is in Spectator Mode. Supply the $literal parameter as true to force a literal Adventure Mode check.
bool | $literal | whether a literal check should be performed |
Definition at line 1280 of file Player.php.
|
inherited |
Definition at line 586 of file Entity.php.
pocketmine\player\Player::isAuthenticated | ( | ) |
Definition at line 426 of file Player.php.
|
inherited |
Returns whether the entity is currently breathing or not. If this is false, the entity's air supply will be used.
Definition at line 805 of file Living.php.
|
inherited |
Returns whether the entity has been "closed".
Definition at line 1619 of file Entity.php.
pocketmine\player\Player::isConnected | ( | ) |
Definition at line 663 of file Player.php.
pocketmine\player\Player::isCreative | ( | bool | $literal = false | ) |
NOTE: Because Creative and Spectator Mode share some similar behaviour, this method will also return true if the player is in Spectator Mode. Supply the $literal parameter as true to force a literal Creative Mode check.
bool | $literal | whether a literal check should be performed |
Definition at line 1270 of file Player.php.
|
inherited |
Definition at line 730 of file Entity.php.
|
inherited |
Definition at line 1612 of file Entity.php.
pocketmine\player\Player::isFlying | ( | ) |
Definition at line 530 of file Player.php.
|
inherited |
Definition at line 272 of file Living.php.
|
inherited |
Definition at line 1147 of file Entity.php.
|
inherited |
Definition at line 354 of file Entity.php.
|
inherited |
Definition at line 258 of file Entity.php.
|
inherited |
Definition at line 254 of file Entity.php.
|
inherited |
Definition at line 686 of file Entity.php.
|
inherited |
Definition at line 1464 of file Entity.php.
pocketmine\player\Player::isOnline | ( | ) |
Definition at line 659 of file Player.php.
|
inherited |
Checks if this instance has a permission overridden
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Definition at line 363 of file Entity.php.
pocketmine\player\Player::isSleeping | ( | ) |
Definition at line 1152 of file Player.php.
|
inherited |
Definition at line 248 of file Living.php.
pocketmine\player\Player::isSpectator | ( | ) |
Definition at line 1284 of file Player.php.
|
inherited |
Definition at line 258 of file Living.php.
pocketmine\player\Player::isSurvival | ( | bool | $literal = false | ) |
NOTE: Because Survival and Adventure Mode share some similar behaviour, this method will also return true if the player is in Adventure Mode. Supply the $literal parameter as true to force a literal Survival Mode check.
bool | $literal | whether a literal check should be performed |
Definition at line 1260 of file Player.php.
|
inherited |
Definition at line 282 of file Living.php.
|
inherited |
Definition at line 1136 of file Entity.php.
pocketmine\player\Player::isUsingChunk | ( | int | $chunkX, |
int | $chunkZ ) |
Returns whether the player is using the chunk with the given coordinates, irrespective of whether the chunk has been sent yet.
Definition at line 1050 of file Player.php.
pocketmine\player\Player::isUsingItem | ( | ) |
Returns whether the player is currently using an item (right-click and hold).
Definition at line 740 of file Player.php.
|
static |
Validates the given username.
Definition at line 211 of file Player.php.
pocketmine\player\Player::jump | ( | ) |
Called when the entity jumps from the ground. This method adds upwards velocity to the entity.
Reimplemented from pocketmine\entity\Human.
Definition at line 1480 of file Player.php.
pocketmine\player\Player::kick | ( | Translatable|string | $reason = "", |
Translatable|string|null | $quitMessage = null, | ||
Translatable|string|null | $disconnectScreenMessage = null ) |
Kicks a player from the server
Translatable | string | $reason | Shown in the server log - this should be a short one-line message |
Translatable | string | null | $quitMessage | Message to broadcast to online players (null will use default) |
Translatable | string | null | $disconnectScreenMessage | Shown on the player's disconnection screen (null will use the reason) |
Definition at line 2316 of file Player.php.
|
inherited |
Definition at line 564 of file Entity.php.
|
inherited |
Definition at line 612 of file Living.php.
|
inherited |
Changes the entity's yaw and pitch to make it look at the specified Vector3 position. For mobs, this will cause their heads to turn.
Definition at line 932 of file Living.php.
pocketmine\player\Player::missSwing | ( | ) |
Performs actions associated with the attack action (left-click) without a target entity. Under normal circumstances, this will just play the no-damage attack sound and the arm-swing animation.
Definition at line 2038 of file Player.php.
|
protectedinherited |
Reimplemented from pocketmine\entity\Entity.
Definition at line 708 of file Living.php.
|
staticinherited |
Returns a new runtime entity ID for a new entity.
Definition at line 105 of file Entity.php.
|
inherited |
Called when the entity's air supply ticks reaches -20 or lower. The entity will usually take damage at this point and then the supply is reset to 0, so this method will be called roughly every second.
Reimplemented in pocketmine\entity\WaterAnimal.
Definition at line 853 of file Living.php.
|
inherited |
This method will be called when a block changes in a registered chunk
Implemented in pocketmine\network\mcpe\cache\ChunkCache.
onChunkUnloaded as pocketmine\player\Player::onChunkChanged | ( | int | $chunkX, |
int | $chunkZ, | ||
Chunk | $chunk ) |
This method will be called when a Chunk is replaced by a new one
Implements pocketmine\world\ChunkListener.
Definition at line 2900 of file Player.php.
|
inherited |
This method will be called when a registered chunk is loaded
|
inherited |
This method will be called when a registered chunk is populated Usually it'll be sent with another call to onChunkChanged()
pocketmine\player\Player::onChunkUnloaded | ( | int | $chunkX, |
int | $chunkZ, | ||
Chunk | $chunk ) |
This method will be called when a registered chunk is unloaded
Implements pocketmine\world\ChunkListener.
Definition at line 2908 of file Player.php.
|
inherited |
Definition at line 1125 of file Entity.php.
|
protected |
Override this to do actions on death.
Reimplemented from pocketmine\entity\Living.
Definition at line 2489 of file Player.php.
|
protected |
Called to tick entities while dead. Returns whether the entity should be flagged for despawn yet.
Reimplemented from pocketmine\entity\Living.
Definition at line 2525 of file Player.php.
|
protected |
Called when the entity is disposed to clean up things like viewers. This SHOULD NOT destroy internal state, because it may be needed by descendent classes.
Reimplemented from pocketmine\entity\Human.
Definition at line 2416 of file Player.php.
|
protectedinherited |
Called from onUpdate() on the first tick of a new entity. This is called before any movement processing or main ticking logic. Use this to fire any events related to spawning the entity.
Reimplemented in pocketmine\entity\object\FireworkRocket, pocketmine\entity\object\ItemEntity, and pocketmine\entity\projectile\Trident.
Definition at line 978 of file Entity.php.
pocketmine\player\Player::onFormSubmit | ( | int | $formId, |
mixed | $responseData ) |
Definition at line 2264 of file Player.php.
|
protectedinherited |
Called when a falling entity hits the ground.
Reimplemented from pocketmine\entity\Entity.
Definition at line 383 of file Living.php.
Called when interacted or tapped by a Player. Returns whether something happened as a result of the interaction.
Definition at line 1132 of file Entity.php.
|
inherited |
Definition at line 1046 of file Entity.php.
pocketmine\player\Player::onPostDisconnect | ( | Translatable|string | $reason, |
Translatable|string|null | $quitMessage ) |
Definition at line 2365 of file Player.php.
|
inherited |
Called when a random update is performed on the chunk the entity is in. This happens when the chunk is within the ticking chunk range of a player (or chunk loader).
Reimplemented in pocketmine\entity\object\Painting.
Definition at line 1055 of file Entity.php.
pocketmine\player\Player::onUpdate | ( | int | $currentTick | ) |
Reimplemented from pocketmine\entity\Entity.
Definition at line 1503 of file Player.php.
pocketmine\player\Player::openSignEditor | ( | Vector3 | $position, |
bool | $frontFace = true ) |
Opens the player's sign editor GUI for the sign at the given position.
Definition at line 2885 of file Player.php.
|
protected |
Calculates which new chunks this player needs to use, and which currently-used chunks it needs to stop using. This is based on factors including the player's current render radius and current position.
Definition at line 1001 of file Player.php.
|
staticinherited |
pocketmine\player\Player::pickBlock | ( | Vector3 | $pos, |
bool | $addTileNBT ) |
Definition at line 1790 of file Player.php.
pocketmine\player\Player::pickEntity | ( | int | $entityId | ) |
Definition at line 1812 of file Player.php.
|
protected |
Fires movement events and synchronizes player movement, every tick.
Definition at line 1417 of file Player.php.
|
protectedinherited |
Definition at line 310 of file Entity.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
pocketmine\player\Player::releaseHeldItem | ( | ) |
Releases the held item, for example to fire a bow. This should be preceded by a call to useHeldItem().
Definition at line 1767 of file Player.php.
pocketmine\player\Player::removeCurrentWindow | ( | ) |
Definition at line 2843 of file Player.php.
|
protected |
Definition at line 2867 of file Player.php.
pocketmine\player\Player::removeTitles | ( | ) |
Removes the title from the client's screen.
Definition at line 2197 of file Player.php.
|
protected |
Requests chunks from the world to be sent, up to a set limit every tick. This operates on the results of the most recent chunk order.
Definition at line 857 of file Player.php.
pocketmine\player\Player::resetFallDistance | ( | ) |
Reimplemented from pocketmine\entity\Entity.
Definition at line 631 of file Player.php.
pocketmine\player\Player::resetItemCooldown | ( | Item | $item, |
?int | $ticks = null ) |
Resets the player's cooldown time for the given item back to the maximum.
Definition at line 776 of file Player.php.
References pocketmine\item\Item\getCooldownTag(), and pocketmine\server().
|
protectedinherited |
Definition at line 1426 of file Entity.php.
pocketmine\player\Player::resetTitles | ( | ) |
Resets the title duration settings to defaults and removes any existing titles.
Definition at line 2204 of file Player.php.
pocketmine\player\Player::respawn | ( | ) |
Definition at line 2530 of file Player.php.
|
inherited |
Definition at line 1564 of file Entity.php.
|
protected |
Definition at line 1471 of file Player.php.
pocketmine\player\Player::save | ( | ) |
Handles player data saving
Definition at line 2485 of file Player.php.
References pocketmine\server().
|
inherited |
Reimplemented from pocketmine\entity\Living.
|
finalinherited |
Definition at line 1039 of file Entity.php.
pocketmine\player\Player::selectHotbarSlot | ( | int | $hotbarSlot | ) |
Definition at line 1627 of file Player.php.
pocketmine\player\Player::sendActionBarMessage | ( | string | $message | ) |
Adds small text to the user's screen.
Definition at line 2190 of file Player.php.
pocketmine\player\Player::sendData | ( | ?array | $targets, |
?array | $data = null ) |
Player[] | null | $targets | |
MetadataProperty[] | $data | Properly formatted entity data, defaults to everything |
@phpstan-param array<int, MetadataProperty> $data
Reimplemented from pocketmine\entity\Entity.
Definition at line 2652 of file Player.php.
pocketmine\player\Player::sendForm | ( | Form | $form | ) |
Sends a Form to the player, or queue to send it if a form is already open.
InvalidArgumentException
Definition at line 2257 of file Player.php.
pocketmine\player\Player::sendJukeboxPopup | ( | Translatable|string | $message | ) |
Definition at line 2228 of file Player.php.
pocketmine\player\Player::sendMessage | ( | Translatable|string | $message | ) |
Sends a direct chat message to a player
Implements pocketmine\command\CommandSender.
Definition at line 2224 of file Player.php.
pocketmine\player\Player::sendPopup | ( | string | $message | ) |
Sends a popup message to the player
TODO: add translation type popups
Definition at line 2237 of file Player.php.
|
protected |
TODO: remove this
Definition at line 2679 of file Player.php.
pocketmine\player\Player::sendSkin | ( | ?array | $targets = null | ) |
{Sends the human's skin to the specified list of players. If null is given for targets, the skin will be sent to all viewers.
Player[] | null | $targets |
If null is given, will additionally send the skin to the player itself as well as its viewers.
Reimplemented from pocketmine\entity\Human.
Definition at line 733 of file Player.php.
References pocketmine\server().
|
protectedinherited |
Called by spawnTo() to send whatever packets needed to spawn the entity to the client.
Reimplemented from pocketmine\entity\Living.
pocketmine\player\Player::sendSubTitle | ( | string | $subtitle | ) |
Sets the subtitle message, without sending a title.
Definition at line 2183 of file Player.php.
pocketmine\player\Player::sendTip | ( | string | $message | ) |
Definition at line 2241 of file Player.php.
pocketmine\player\Player::sendTitle | ( | string | $title, |
string | $subtitle = "", | ||
int | $fadeIn = -1, | ||
int | $stay = -1, | ||
int | $fadeOut = -1 ) |
Adds a title text to the user's screen, with an optional subtitle.
int | $fadeIn | Duration in ticks for fade-in. If -1 is given, client-sided defaults will be used. |
int | $stay | Duration in ticks to stay on screen for |
int | $fadeOut | Duration in ticks for fade-out. |
Definition at line 2172 of file Player.php.
pocketmine\player\Player::sendToastNotification | ( | string | $title, |
string | $body ) |
Sends a toast message to the player, or queue to send it if a toast message is already shown.
Definition at line 2248 of file Player.php.
|
inherited |
Definition at line 240 of file Living.php.
|
inherited |
Sets the number of air ticks left in the entity's air supply.
Definition at line 829 of file Living.php.
pocketmine\player\Player::setAllowFlight | ( | bool | $value | ) |
Sets whether the player is allowed to toggle flight mode.
If set to false, the player will be locked in its current flight mode (flying/not flying), and attempts by the player to enter or exit flight mode will be prevented.
Note: Setting this to false DOES NOT change whether the player is currently flying. Use Player::setFlying()
for that purpose.
Definition at line 482 of file Player.php.
pocketmine\player\Player::setAutoJump | ( | bool | $value | ) |
Definition at line 569 of file Player.php.
|
inherited |
Assigns a baseline permission to the permissible. This is always calculated before anything else, which means that permissions set using addAttachment() will always override base permissions. You probably don't want to use this if you're not assigning (denying) operator permissions.
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Sets whether the entity is currently breathing. If false, it will cause the entity's air supply to be used. For players, this also shows the oxygen bar.
Definition at line 813 of file Living.php.
|
inherited |
Sets whether the entity is able to climb climbable blocks.
Definition at line 382 of file Entity.php.
|
inherited |
Sets whether the entity is climbing a block. If true, the entity can climb anything.
Definition at line 397 of file Entity.php.
pocketmine\player\Player::setCanSaveWithChunk | ( | bool | $value | ) |
Sets whether this entity will be saved when its chunk is unloaded. This can be used to prevent the entity being saved to disk.
Reimplemented from pocketmine\entity\Entity.
Definition at line 2447 of file Player.php.
pocketmine\player\Player::setCreativeInventory | ( | CreativeInventory | $inventory | ) |
To set a custom creative inventory, you need to make a clone of a CreativeInventory instance.
Definition at line 2745 of file Player.php.
pocketmine\player\Player::setCurrentWindow | ( | InventoryWindow | $window | ) |
Opens an inventory window to the player. Returns if it was successful.
Definition at line 2818 of file Player.php.
pocketmine\player\Player::setDeathPosition | ( | ?Vector3 | $pos | ) |
Vector3 | Position | null | $pos |
Definition at line 1101 of file Player.php.
pocketmine\player\Player::setDisplayName | ( | string | $name | ) |
Definition at line 688 of file Player.php.
|
inherited |
|
inherited |
Definition at line 1084 of file Entity.php.
|
inherited |
pocketmine\player\Player::setFlightSpeedMultiplier | ( | float | $flightSpeedMultiplier | ) |
Sets the player's flight speed multiplier.
Normal flying speed in blocks-per-tick is (multiplier * 10) blocks per tick. When sprint-flying, this is doubled to 20.
If set to zero, the player will not be able to move in the xz plane when flying. Negative values will invert the controls.
Note: Movement speed attribute does not influence flight speed.
Definition at line 547 of file Player.php.
pocketmine\player\Player::setFlying | ( | bool | $value | ) |
Definition at line 522 of file Player.php.
|
finalinherited |
Flags the entity as needing a movement update on the next tick. Setting this forces a movement update even if the entity's motion is zero. Used to trigger movement updates when blocks change near entities.
Definition at line 1063 of file Entity.php.
pocketmine\player\Player::setGamemode | ( | GameMode | $gm | ) |
Sets the provided gamemode.
Definition at line 1231 of file Player.php.
|
inherited |
Definition at line 276 of file Living.php.
|
inherited |
Definition at line 827 of file Entity.php.
pocketmine\player\Player::setHasBlockCollision | ( | bool | $value | ) |
Sets whether the player's movement may be obstructed by blocks with collision boxes. If set to false, the player can move through any block unobstructed.
Note: Enabling flight mode in conjunction with this is recommended. A non-flying player will simply fall through the ground into the void.
Definition at line 507 of file Player.php.
|
inherited |
Definition at line 836 of file Entity.php.
|
inherited |
Sets the health of the Entity. This won't send any update to the players
Reimplemented from pocketmine\entity\Entity.
Definition at line 219 of file Living.php.
Referenced by pocketmine\entity\effect\HealthBoostEffect\remove().
|
inherited |
Definition at line 358 of file Entity.php.
|
inherited |
Definition at line 625 of file Entity.php.
|
inherited |
|
inherited |
Sets the maximum amount of air ticks the air supply can hold.
Definition at line 844 of file Living.php.
|
inherited |
Reimplemented from pocketmine\entity\Entity.
Definition at line 232 of file Living.php.
pocketmine\player\Player::setMotion | ( | Vector3 | $motion | ) |
Reimplemented from pocketmine\entity\Entity.
Definition at line 1485 of file Player.php.
|
inherited |
Definition at line 308 of file Living.php.
|
inherited |
Definition at line 270 of file Entity.php.
|
inherited |
Definition at line 280 of file Entity.php.
|
inherited |
Definition at line 275 of file Entity.php.
|
inherited |
Things such as movement in water, burning, etc. may be predicted by the client. This is sometimes not desirable, since server-side logic may differ from client-side prediction. However, things like movement smoothing (interpolation) are also controlled by this, so it should be used with care.
Setting this flag will also disable player movement inputs, but this should not be relied on, as cheat clients will be able to bypass it.
Definition at line 349 of file Entity.php.
|
inherited |
|
inherited |
Reimplemented from pocketmine\entity\Entity.
Definition at line 437 of file Living.php.
|
inherited |
Sets the owner of the entity. Passing null will remove the current owner.
InvalidArgumentException if the supplied entity is not valid
Definition at line 421 of file Entity.php.
|
protected |
Reimplemented from pocketmine\entity\Entity.
Definition at line 793 of file Player.php.
|
protectedinherited |
Definition at line 1416 of file Entity.php.
|
inherited |
Definition at line 1401 of file Entity.php.
|
inherited |
Definition at line 298 of file Entity.php.
|
inherited |
Definition at line 289 of file Entity.php.
pocketmine\player\Player::setScreenLineHeight | ( | ?int | $height | ) |
Sets the line height used for command output pagination for this command sender. null
will reset it to default. @phpstan-param positive-int|null $height
Implements pocketmine\command\CommandSender.
Definition at line 594 of file Player.php.
|
inherited |
Definition at line 367 of file Entity.php.
|
protectedinherited |
Definition at line 327 of file Entity.php.
|
inherited |
|
inherited |
Definition at line 252 of file Living.php.
pocketmine\player\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
Vector3 | Position | null | $pos |
Definition at line 1138 of file Player.php.
|
inherited |
Definition at line 262 of file Living.php.
|
inherited |
Definition at line 1271 of file Entity.php.
|
inherited |
Definition at line 286 of file Living.php.
|
inherited |
Sets the entity's target entity. Passing null will remove the current target.
InvalidArgumentException if the target entity is not valid
Definition at line 452 of file Entity.php.
pocketmine\player\Player::setTitleDuration | ( | int | $fadeIn, |
int | $stay, | ||
int | $fadeOut ) |
Sets the title duration.
int | $fadeIn | Title fade-in time in ticks. |
int | $stay | Title stay time in ticks. |
int | $fadeOut | Title fade-out time in ticks. |
Definition at line 2215 of file Player.php.
pocketmine\player\Player::setUsingItem | ( | bool | $value | ) |
Definition at line 744 of file Player.php.
pocketmine\player\Player::setViewDistance | ( | int | $distance | ) |
Definition at line 640 of file Player.php.
pocketmine\player\Player::showPlayer | ( | Player | $player | ) |
Definition at line 613 of file Player.php.
pocketmine\player\Player::sleepOn | ( | Vector3 | $pos | ) |
Definition at line 1156 of file Player.php.
|
protected |
Definition at line 836 of file Player.php.
|
protected |
Definition at line 845 of file Player.php.
pocketmine\player\Player::spawnTo | ( | Player | $player | ) |
Reimplemented from pocketmine\entity\Human.
Definition at line 580 of file Player.php.
|
inherited |
Definition at line 1555 of file Entity.php.
|
protectedinherited |
Definition at line 660 of file Living.php.
pocketmine\player\Player::stopBreakBlock | ( | Vector3 | $pos | ) |
Definition at line 1903 of file Player.php.
pocketmine\player\Player::stopSleep | ( | ) |
Definition at line 1181 of file Player.php.
|
protected |
Reimplemented from pocketmine\entity\Living.
Definition at line 2631 of file Player.php.
pocketmine\player\Player::teleport | ( | Vector3 | $pos, |
?float | $yaw = null, | ||
?float | $pitch = null ) |
Vector3 | Position | Location | $pos |
Reimplemented from pocketmine\entity\Entity.
Definition at line 2685 of file Player.php.
pocketmine\player\Player::toggleFlight | ( | bool | $fly | ) |
Definition at line 2102 of file Player.php.
pocketmine\player\Player::toggleGlide | ( | bool | $glide | ) |
Definition at line 2118 of file Player.php.
pocketmine\player\Player::toggleSneak | ( | bool | $sneak | ) |
Definition at line 2089 of file Player.php.
pocketmine\player\Player::toggleSprint | ( | bool | $sprint | ) |
Definition at line 2076 of file Player.php.
pocketmine\player\Player::toggleSwim | ( | bool | $swim | ) |
Definition at line 2131 of file Player.php.
pocketmine\player\Player::transfer | ( | string | $address, |
int | $port = 19132, | ||
Translatable|string|null | $message = null ) |
Transfers a player to another server.
string | $address | The IP address or hostname of the destination server |
int | $port | The destination port, defaults to 19132 |
Translatable | string | null | $message | Message to show in the console when closing the player, null will use the default message |
Definition at line 2298 of file Player.php.
|
protected |
Reimplemented from pocketmine\entity\Entity.
Definition at line 1499 of file Player.php.
|
protected |
Definition at line 816 of file Player.php.
|
inherited |
Unsets a baseline permission previously set. If it wasn't already set, this will have no effect. Note that this might have different results than setting the permission to false.
Implemented in pocketmine\permission\PermissibleInternal.
|
protectedinherited |
Definition at line 1092 of file Entity.php.
|
protected |
Reimplemented from pocketmine\entity\Entity.
Definition at line 1495 of file Player.php.
pocketmine\player\Player::useHeldItem | ( | ) |
Activates the item in hand, for example throwing a projectile.
Definition at line 1700 of file Player.php.
|
protectedinherited |
Definition at line 127 of file Living.php.
|
protected |
Definition at line 291 of file Player.php.
|
protectedinherited |
Definition at line 175 of file Entity.php.
|
protectedinherited |
Definition at line 120 of file Living.php.
|
protectedinherited |
Definition at line 111 of file Living.php.
|
protectedinherited |
Definition at line 157 of file Entity.php.
|
protected |
Definition at line 228 of file Player.php.
|
protected |
Definition at line 290 of file Player.php.
|
protected |
Definition at line 317 of file Player.php.
|
protected |
Definition at line 292 of file Player.php.
|
protectedinherited |
Definition at line 122 of file Entity.php.
|
inherited |
Definition at line 131 of file Entity.php.
|
protectedinherited |
Definition at line 122 of file Living.php.
|
protectedinherited |
Definition at line 123 of file Living.php.
|
protectedinherited |
Definition at line 179 of file Entity.php.
|
protectedinherited |
Definition at line 180 of file Entity.php.
|
protected |
Definition at line 269 of file Player.php.
|
protected |
Definition at line 268 of file Player.php.
|
protected |
Definition at line 267 of file Player.php.
|
protected |
Definition at line 270 of file Player.php.
|
protectedinherited |
Definition at line 165 of file Entity.php.
|
protected |
Definition at line 235 of file Player.php.
|
protected |
Definition at line 236 of file Player.php.
|
protected |
Definition at line 231 of file Player.php.
|
protected |
Definition at line 234 of file Player.php.
|
inherited |
Definition at line 113 of file Living.php.
|
protected |
Definition at line 226 of file Player.php.
|
protectedinherited |
Definition at line 160 of file Entity.php.
|
protectedinherited |
Definition at line 118 of file Living.php.
|
protectedinherited |
|
inherited |
Definition at line 143 of file Entity.php.
|
protectedinherited |
Definition at line 146 of file Entity.php.
|
protected |
Definition at line 240 of file Player.php.
|
protected |
Definition at line 295 of file Player.php.
|
protected |
Definition at line 293 of file Player.php.
|
protectedinherited |
Definition at line 128 of file Entity.php.
|
protected |
Definition at line 311 of file Player.php.
|
protected |
Definition at line 313 of file Player.php.
|
protected |
Definition at line 242 of file Player.php.
|
protectedinherited |
Definition at line 133 of file Living.php.
|
protectedinherited |
Definition at line 159 of file Entity.php.
|
protectedinherited |
Definition at line 161 of file Entity.php.
|
protectedinherited |
Definition at line 113 of file Entity.php.
|
protectedinherited |
Definition at line 126 of file Living.php.
|
protected |
Definition at line 273 of file Player.php.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Definition at line 115 of file Entity.php.
|
protected |
Definition at line 278 of file Player.php.
|
protectedinherited |
|
protectedinherited |
Definition at line 182 of file Entity.php.
|
inherited |
Definition at line 150 of file Entity.php.
|
inherited |
Definition at line 151 of file Entity.php.
|
inherited |
Definition at line 152 of file Entity.php.
|
protectedinherited |
Definition at line 116 of file Living.php.
|
protectedinherited |
Definition at line 155 of file Entity.php.
|
inherited |
Definition at line 141 of file Entity.php.
|
protectedinherited |
Definition at line 128 of file Living.php.
|
protectedinherited |
Definition at line 119 of file Entity.php.
|
protectedinherited |
Definition at line 125 of file Entity.php.
|
protectedinherited |
Definition at line 127 of file Entity.php.
|
protected |
Definition at line 276 of file Player.php.
|
protected |
Definition at line 241 of file Player.php.
|
inherited |
Definition at line 145 of file Entity.php.
|
protected |
@phpstan-var positive-int|null
Definition at line 298 of file Player.php.
|
protected |
Definition at line 258 of file Player.php.
|
protected |
Definition at line 299 of file Player.php.
|
protectedinherited |
Definition at line 124 of file Entity.php.
|
protected |
Definition at line 315 of file Player.php.
|
protectedinherited |
Definition at line 124 of file Living.php.
|
protectedinherited |
Definition at line 114 of file Living.php.
|
protected |
Definition at line 238 of file Player.php.
|
protectedinherited |
Definition at line 126 of file Entity.php.
|
protected |
Definition at line 275 of file Player.php.
|
protectedinherited |
Definition at line 129 of file Living.php.
|
protectedinherited |
Definition at line 173 of file Entity.php.
|
protectedinherited |
Definition at line 174 of file Entity.php.
|
protectedinherited |
Definition at line 171 of file Entity.php.
|
protected |
Definition at line 221 of file Player.php.
|
protected |
Definition at line 259 of file Player.php.
|
protectedinherited |
Definition at line 181 of file Entity.php.
|
inherited |
Definition at line 154 of file Entity.php.
|
protectedinherited |
|
inherited |
Definition at line 132 of file Entity.php.
|
protectedinherited |
Definition at line 185 of file Entity.php.
|
protected |
Definition at line 233 of file Player.php.
|
protected |
Definition at line 229 of file Player.php.
|
protectedinherited |
Definition at line 177 of file Entity.php.
|
protectedinherited |
Definition at line 176 of file Entity.php.
|
protectedinherited |
Definition at line 163 of file Entity.php.
|
protectedinherited |
Definition at line 183 of file Entity.php.
|
inherited |
Definition at line 134 of file Entity.php.
|
protected |
Definition at line 282 of file Player.php.
|
protectedinherited |
Definition at line 132 of file Living.php.
|
protected |
Definition at line 266 of file Player.php.
bool pocketmine\player\Player::$spawned = false |
Definition at line 223 of file Player.php.
|
protected |
Definition at line 265 of file Player.php.
|
protectedinherited |
Definition at line 131 of file Living.php.
|
protected |
Definition at line 301 of file Player.php.
|
protected |
Definition at line 280 of file Player.php.
|
protectedinherited |
Definition at line 134 of file Living.php.
|
protectedinherited |
Definition at line 186 of file Entity.php.
|
inherited |
Definition at line 144 of file Entity.php.
|
protectedinherited |
Definition at line 169 of file Entity.php.
|
protected |
Definition at line 248 of file Player.php.
|
protected |
Definition at line 307 of file Player.php.
|
protected |
Definition at line 225 of file Player.php.
|
protectedinherited |
|
protected |
Definition at line 264 of file Player.php.
|
protectedinherited |
|
protected |
Definition at line 227 of file Player.php.
|
protectedinherited |
Definition at line 139 of file Entity.php.
|
protectedinherited |
Definition at line 88 of file Living.php.
const pocketmine\player\Player::DEFAULT_FLIGHT_SPEED_MULTIPLIER = 0.05 |
Definition at line 192 of file Player.php.
|
inherited |
The default knockback multiplier when an entity is hit by another entity. Larger values knock the entity back with increased velocity.
Definition at line 94 of file Living.php.
|
inherited |
Limit of an entity's vertical knockback velocity when hit by another entity. Without this limit, the entity may be knocked far up into the air with large knockback forces.
Definition at line 99 of file Living.php.
|
inherited |
Definition at line 88 of file Entity.php.
|
protectedinherited |
Definition at line 89 of file Entity.php.
const pocketmine\player\Player::TAG_FIRST_PLAYED = "firstPlayed" |
Definition at line 194 of file Player.php.
const pocketmine\player\Player::TAG_LAST_KNOWN_XUID = "LastKnownXUID" |
Definition at line 206 of file Player.php.
const pocketmine\player\Player::TAG_LAST_PLAYED = "lastPlayed" |
Definition at line 195 of file Player.php.
const pocketmine\player\Player::TAG_LEVEL = "Level" |
Definition at line 205 of file Player.php.
|
inherited |
Definition at line 97 of file Entity.php.
|
inherited |
Definition at line 96 of file Entity.php.
|
inherited |
Definition at line 98 of file Entity.php.