InGamePacketHandler
Extends PacketHandler
This handler handles packets related to general gameplay.
Properties
$forceMoveSync
php
public bool $forceMoveSync$lastBlockAttacked protected
php
protected ?\pocketmine\network\mcpe\protocol\types\BlockPosition $lastBlockAttacked$lastPlayerAuthInputFlags protected
php
protected ?\pocketmine\network\mcpe\protocol\serializer\BitSet $lastPlayerAuthInputFlags$lastPlayerAuthInputPitch protected
php
protected ?float $lastPlayerAuthInputPitch$lastPlayerAuthInputPosition protected
php
protected ?\pocketmine\math\Vector3 $lastPlayerAuthInputPosition$lastPlayerAuthInputYaw protected
php
protected ?float $lastPlayerAuthInputYaw$lastRequestedFullSkinId protected
php
protected ?string $lastRequestedFullSkinId$lastRightClickData protected
php
protected ?\pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData $lastRightClickData$lastRightClickTime protected
php
protected float $lastRightClickTimeMethods
__construct()
php
public function __construct(\pocketmine\player\Player $player, \pocketmine\network\mcpe\NetworkSession $session, \pocketmine\network\mcpe\InventoryManager $inventoryManager)handleActorPickRequest()
php
public function handleActorPickRequest(\pocketmine\network\mcpe\protocol\ActorPickRequestPacket $packet) : boolhandleAnimate()
php
public function handleAnimate(\pocketmine\network\mcpe\protocol\AnimatePacket $packet) : boolhandleBlockActorData()
php
public function handleBlockActorData(\pocketmine\network\mcpe\protocol\BlockActorDataPacket $packet) : boolhandleBlockPickRequest()
php
public function handleBlockPickRequest(\pocketmine\network\mcpe\protocol\BlockPickRequestPacket $packet) : boolhandleBookEdit()
php
public function handleBookEdit(\pocketmine\network\mcpe\protocol\BookEditPacket $packet) : boolhandleCommandBlockUpdate() 5.46.0
php
public function handleCommandBlockUpdate(\pocketmine\network\mcpe\protocol\CommandBlockUpdatePacket $packet) : boolThe command block screen of a command block minecart was edited (command blocks don't exist as blocks here).
handleCommandRequest()
php
public function handleCommandRequest(\pocketmine\network\mcpe\protocol\CommandRequestPacket $packet) : boolhandleContainerClose()
php
public function handleContainerClose(\pocketmine\network\mcpe\protocol\ContainerClosePacket $packet) : boolhandleEmote()
php
public function handleEmote(\pocketmine\network\mcpe\protocol\EmotePacket $packet) : boolhandleInteract()
php
public function handleInteract(\pocketmine\network\mcpe\protocol\InteractPacket $packet) : boolhandleInventoryTransaction()
php
public function handleInventoryTransaction(\pocketmine\network\mcpe\protocol\InventoryTransactionPacket $packet) : boolhandleItemStackRequest()
php
public function handleItemStackRequest(\pocketmine\network\mcpe\protocol\ItemStackRequestPacket $packet) : boolhandleLecternUpdate()
php
public function handleLecternUpdate(\pocketmine\network\mcpe\protocol\LecternUpdatePacket $packet) : boolhandleMapInfoRequest() 5.46.0
php
public function handleMapInfoRequest(\pocketmine\network\mcpe\protocol\MapInfoRequestPacket $packet) : boolhandleMobEquipment()
php
public function handleMobEquipment(\pocketmine\network\mcpe\protocol\MobEquipmentPacket $packet) : boolhandleModalFormResponse()
php
public function handleModalFormResponse(\pocketmine\network\mcpe\protocol\ModalFormResponsePacket $packet) : boolhandlePlayerAction()
php
public function handlePlayerAction(\pocketmine\network\mcpe\protocol\PlayerActionPacket $packet) : boolhandlePlayerAuthInput()
php
public function handlePlayerAuthInput(\pocketmine\network\mcpe\protocol\PlayerAuthInputPacket $packet) : boolhandlePlayerSkin()
php
public function handlePlayerSkin(\pocketmine\network\mcpe\protocol\PlayerSkinPacket $packet) : boolhandlePlayerToggleCrafterSlotRequest() 5.46.0
php
public function handlePlayerToggleCrafterSlotRequest(\pocketmine\network\mcpe\protocol\PlayerToggleCrafterSlotRequestPacket $packet) : boolSent when a player clicks an empty slot of an open crafter to disable or enable it.
handlePositionTrackingDBClientRequest() 5.46.0
php
public function handlePositionTrackingDBClientRequest(\pocketmine\network\mcpe\protocol\PositionTrackingDBClientRequestPacket $packet) : boolhandleRequestChunkRadius()
php
public function handleRequestChunkRadius(\pocketmine\network\mcpe\protocol\RequestChunkRadiusPacket $packet) : boolhandleServerboundLoadingScreen() 5.46.0
php
public function handleServerboundLoadingScreen(\pocketmine\network\mcpe\protocol\ServerboundLoadingScreenPacket $packet) : boolhandleSetPlayerGameType()
php
public function handleSetPlayerGameType(\pocketmine\network\mcpe\protocol\SetPlayerGameTypePacket $packet) : boolhandleText()
php
public function handleText(\pocketmine\network\mcpe\protocol\TextPacket $packet) : bool