color = DyeColor::WHITE(); parent::__construct($identifier, $name); } public function getMeta() : int{ return DyeColorIdMap::getInstance()->toId($this->color); } public function getColor() : DyeColor{ return $this->color; } /** * @return $this */ public function setColor(DyeColor $color) : self{ $this->color = $color; return $this; } public function getBlock(?int $clickedFace = null) : Block{ return VanillaBlocks::BED()->setColor($this->color); } public function getMaxStackSize() : int{ return 1; } }