eastSlot ? 0x01 : 0) | ($this->southwestSlot ? 0x02 : 0) | ($this->northwestSlot ? 0x04 : 0); } public function readStateFromData(int $id, int $stateMeta) : void{ $this->eastSlot = ($stateMeta & 0x01) !== 0; $this->southwestSlot = ($stateMeta & 0x02) !== 0; $this->northwestSlot = ($stateMeta & 0x04) !== 0; } public function getHardness() : float{ return 0.5; } public function getToolType() : int{ return BlockToolType::TYPE_PICKAXE; } public function getToolHarvestLevel() : int{ return TieredTool::TIER_WOODEN; } //TODO }