burnsForever = ($stateMeta & BlockLegacyMetadata::BEDROCK_FLAG_INFINIBURN) !== 0; } protected function writeStateToMeta() : int{ return $this->burnsForever ? BlockLegacyMetadata::BEDROCK_FLAG_INFINIBURN : 0; } public function getStateBitmask() : int{ return 0b1; } public function burnsForever() : bool{ return $this->burnsForever; } /** @return $this */ public function setBurnsForever(bool $burnsForever) : self{ $this->burnsForever = $burnsForever; return $this; } }