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