Skip to content

InGamePacketHandler ​

class · pocketmine\network\mcpe\handler\InGamePacketHandler · source

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 $lastRightClickTime

Methods ​

__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) : bool

handleAnimate() ​

php
public function handleAnimate(\pocketmine\network\mcpe\protocol\AnimatePacket $packet) : bool

handleBlockActorData() ​

php
public function handleBlockActorData(\pocketmine\network\mcpe\protocol\BlockActorDataPacket $packet) : bool

handleBlockPickRequest() ​

php
public function handleBlockPickRequest(\pocketmine\network\mcpe\protocol\BlockPickRequestPacket $packet) : bool

handleBookEdit() ​

php
public function handleBookEdit(\pocketmine\network\mcpe\protocol\BookEditPacket $packet) : bool

handleCommandBlockUpdate() 5.46.0 ​

php
public function handleCommandBlockUpdate(\pocketmine\network\mcpe\protocol\CommandBlockUpdatePacket $packet) : bool

The 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) : bool

handleContainerClose() ​

php
public function handleContainerClose(\pocketmine\network\mcpe\protocol\ContainerClosePacket $packet) : bool

handleEmote() ​

php
public function handleEmote(\pocketmine\network\mcpe\protocol\EmotePacket $packet) : bool

handleInteract() ​

php
public function handleInteract(\pocketmine\network\mcpe\protocol\InteractPacket $packet) : bool

handleInventoryTransaction() ​

php
public function handleInventoryTransaction(\pocketmine\network\mcpe\protocol\InventoryTransactionPacket $packet) : bool

handleItemStackRequest() ​

php
public function handleItemStackRequest(\pocketmine\network\mcpe\protocol\ItemStackRequestPacket $packet) : bool

handleLecternUpdate() ​

php
public function handleLecternUpdate(\pocketmine\network\mcpe\protocol\LecternUpdatePacket $packet) : bool

handleMapInfoRequest() 5.46.0 ​

php
public function handleMapInfoRequest(\pocketmine\network\mcpe\protocol\MapInfoRequestPacket $packet) : bool

handleMobEquipment() ​

php
public function handleMobEquipment(\pocketmine\network\mcpe\protocol\MobEquipmentPacket $packet) : bool

handleModalFormResponse() ​

php
public function handleModalFormResponse(\pocketmine\network\mcpe\protocol\ModalFormResponsePacket $packet) : bool

handlePlayerAction() ​

php
public function handlePlayerAction(\pocketmine\network\mcpe\protocol\PlayerActionPacket $packet) : bool

handlePlayerAuthInput() ​

php
public function handlePlayerAuthInput(\pocketmine\network\mcpe\protocol\PlayerAuthInputPacket $packet) : bool

handlePlayerSkin() ​

php
public function handlePlayerSkin(\pocketmine\network\mcpe\protocol\PlayerSkinPacket $packet) : bool

handlePlayerToggleCrafterSlotRequest() 5.46.0 ​

php
public function handlePlayerToggleCrafterSlotRequest(\pocketmine\network\mcpe\protocol\PlayerToggleCrafterSlotRequestPacket $packet) : bool

Sent 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) : bool

handleRequestChunkRadius() ​

php
public function handleRequestChunkRadius(\pocketmine\network\mcpe\protocol\RequestChunkRadiusPacket $packet) : bool

handleServerboundLoadingScreen() 5.46.0 ​

php
public function handleServerboundLoadingScreen(\pocketmine\network\mcpe\protocol\ServerboundLoadingScreenPacket $packet) : bool

handleSetPlayerGameType() ​

php
public function handleSetPlayerGameType(\pocketmine\network\mcpe\protocol\SetPlayerGameTypePacket $packet) : bool

handleText() ​

php
public function handleText(\pocketmine\network\mcpe\protocol\TextPacket $packet) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.