27 private array $entities,
28 private array $blocks,
29 private ?
int $defaultEntityPriority,
30 private ?
int $defaultBlockPriority
36 public function getEntities() : array{ return $this->entities; }
41 public function getBlocks() : array{ return $this->blocks; }
43 public function getDefaultEntityPriority() : ?int{ return $this->defaultEntityPriority; }
45 public function getDefaultBlockPriority() : ?int{ return $this->defaultBlockPriority; }
50 $entities[] = CameraAimAssistCategoryEntityPriority::read($in);
55 $blocks[] = CameraAimAssistCategoryBlockPriority::read($in);
63 $defaultEntityPriority,
68 public function write(PacketSerializer $out) : void{
69 $out->putUnsignedVarInt(count($this->entities));
70 foreach($this->entities as $entity){
74 $out->putUnsignedVarInt(count($this->blocks));
75 foreach($this->blocks as $block){
79 $out->writeOptional($this->defaultEntityPriority, fn(
int $v) => $out->putLInt($v));
80 $out->writeOptional($this->defaultBlockPriority, fn(
int $v) => $out->putLInt($v));