24 use GetTypeIdFromConstTrait;
26 public const ID = PrimitiveShapeType::PAYLOAD_TYPE_LINE;
28 public function __construct(
29 private Vector3 $lineEndLocation,
32 public function getLineEndLocation() :
Vector3{
return $this->lineEndLocation; }
34 public static function read(ByteBufferReader $in) :
self{
35 $lineEndLocation = CommonTypes::getVector3($in);
36 return new self($lineEndLocation);
39 public function write(ByteBufferWriter $out) :
void{
40 CommonTypes::putVector3($out, $this->lineEndLocation);