26 public const ID = AttributeLayerSyncType::UPDATE_LAYER_SETTINGS;
28 public function __construct(
30 private int $dimension,
34 public function getTypeId() :
int{
38 public function getName() :
string{
return $this->name; }
40 public function getDimension() :
int{
return $this->dimension; }
44 public static function read(ByteBufferReader $in) :
self{
45 $name = CommonTypes::getString($in);
46 $dimension = VarInt::readUnsignedInt($in);
47 $settings = AttributeLayerSettings::read($in);
56 public function write(ByteBufferWriter $out) :
void{
57 CommonTypes::putString($out, $this->name);
58 VarInt::writeUnsignedInt($out, $this->dimension);
59 $this->settings->write($out);