use pocketmine\network\mcpe\serializer\NetworkBinaryStream; class OnScreenTextureAnimationPacket extends DataPacket implements ClientboundPacket{ public const NETWORK_ID = ProtocolInfo::ON_SCREEN_TEXTURE_ANIMATION_PACKET; /** @var int */ public $effectId; protected function decodePayload(NetworkBinaryStream $in) : void{ $this->effectId = $in->getLInt(); //unsigned } protected function encodePayload(NetworkBinaryStream $out) : void{ $out->putLInt($this->effectId); } public function handle(PacketHandlerInterface $handler) : bool{ return $handler->handleOnScreenTextureAnimation($this); } }