22declare(strict_types=1);
26use
function array_fill_keys;
27use
function array_keys;
34 private array $typeTags;
43 private array $enchantmentTags = []
45 $this->typeTags = array_fill_keys($typeTags,
true);
48 public function getBreakInfo() :
BlockBreakInfo{ return $this->breakInfo; }
51 public function getTypeTags() : array{ return array_keys($this->typeTags); }
53 public function hasTypeTag(
string $tag) : bool{ return isset($this->typeTags[$tag]); }
65 return $this->enchantmentTags;
__construct(private BlockBreakInfo $breakInfo, array $typeTags=[], private array $enchantmentTags=[])