13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
22 public const NETWORK_ID = ProtocolInfo::UPDATE_ATTRIBUTES_PACKET;
24 public int $actorRuntimeId;
26 public array $entries = [];
33 public static function create(
int $actorRuntimeId, array $entries,
int $tick) : self{
35 $result->actorRuntimeId = $actorRuntimeId;
36 $result->entries = $entries;
37 $result->tick = $tick;
42 $this->actorRuntimeId = $in->getActorRuntimeId();
44 $this->entries[] = UpdateAttribute::read($in);
50 $out->putActorRuntimeId($this->actorRuntimeId);
52 foreach($this->entries as $entry){
59 return $handler->handleUpdateAttributes($this);
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)
static create(int $actorRuntimeId, array $entries, int $tick)
putUnsignedVarLong(int $v)
putUnsignedVarInt(int $v)