13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::TAKE_ITEM_ACTOR_PACKET;
22 public int $takerActorRuntimeId;
23 public int $itemActorRuntimeId;
28 public static function create(
int $takerActorRuntimeId,
int $itemActorRuntimeId) : self{
30 $result->takerActorRuntimeId = $takerActorRuntimeId;
31 $result->itemActorRuntimeId = $itemActorRuntimeId;
36 $this->itemActorRuntimeId = $in->getActorRuntimeId();
41 $out->putActorRuntimeId($this->itemActorRuntimeId);
42 $out->putActorRuntimeId($this->takerActorRuntimeId);
46 return $handler->handleTakeItemActor($this);
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)
static create(int $takerActorRuntimeId, int $itemActorRuntimeId)
handle(PacketHandlerInterface $handler)