21 use GetTypeIdFromConstTrait;
23 public const ID = ItemDescriptorType::MOLANG;
25 public function __construct(
26 private string $molangExpression,
27 private int $molangVersion
30 public function getMolangExpression() :
string{
return $this->molangExpression; }
32 public function getMolangVersion() :
int{
return $this->molangVersion; }
38 return new self($expression, $version);
42 $out->putString($this->molangExpression);
43 $out->putByte($this->molangVersion);