28 private string $identifier,
29 private string $categories,
30 private array $exclusionList,
31 private array $liquidTargetingList,
32 private array $itemSettings,
33 private ?
string $defaultItemSettings,
34 private ?
string $defaultHandSettings,
37 public function getIdentifier() : string{ return $this->identifier; }
39 public function getCategories() : string{ return $this->categories; }
56 public function getDefaultItemSettings() : ?string{ return $this->defaultItemSettings; }
58 public function getDefaultHandSettings() : ?string{ return $this->defaultHandSettings; }
61 $identifier = $in->getString();
66 $exclusionList[] = $in->getString();
69 $liquidTargetingList = [];
71 $liquidTargetingList[] = $in->getString();
76 $itemSettings[] = CameraAimAssistPresetItemSettings::read($in);
94 $out->putString($this->identifier);
95 $out->putString($this->categories);
98 foreach($this->exclusionList as $exclusion){
99 $out->putString($exclusion);
103 foreach($this->liquidTargetingList as $liquidTargeting){
104 $out->putString($liquidTargeting);
108 foreach($this->itemSettings as $itemSetting){
109 $itemSetting->write($out);
112 $out->
writeOptional($this->defaultItemSettings, fn(
string $v) => $out->putString($v));
113 $out->
writeOptional($this->defaultHandSettings, fn(
string $v) => $out->putString($v));
__construct(private string $identifier, private string $categories, private array $exclusionList, private array $liquidTargetingList, private array $itemSettings, private ?string $defaultItemSettings, private ?string $defaultHandSettings,)