24 public function __construct(
27 private int $identifier,
29 private bool $useInternal
34 public function getFeature() :
int{
return $this->feature; }
36 public function getIdentifier() :
int{
return $this->identifier; }
38 public function getPass() :
int{
return $this->pass; }
40 public function canUseInternal() :
bool{
return $this->useInternal; }
42 public static function read(ByteBufferReader $in) :
self{
43 $scatter = BiomeScatterParamData::read($in);
44 $feature = LE::readSignedShort($in);
45 $identifier = LE::readSignedShort($in);
46 $pass = LE::readSignedShort($in);
47 $useInternal = CommonTypes::getBool($in);
58 public function write(ByteBufferWriter $out) :
void{
59 $this->scatter->write($out);
60 LE::writeSignedShort($out, $this->feature);
61 LE::writeSignedShort($out, $this->identifier);
62 LE::writeSignedShort($out, $this->pass);
63 CommonTypes::putBool($out, $this->useInternal);