27 public function __construct(
28 private UuidInterface $group,
33 public function getGroup() : UuidInterface{
return $this->group; }
37 public function getAction() :
int{
return $this->action; }
39 public static function read(ByteBufferReader $in) :
self{
40 $group = CommonTypes::getUUID($in);
41 $waypoint = LocatorBarWaypoint::read($in);
42 $action = Byte::readUnsigned($in);
51 public function write(ByteBufferWriter $out) :
void{
52 CommonTypes::putUUID($out, $this->group);
53 $this->waypoint->write($out);
54 Byte::writeUnsigned($out, $this->action);