meta = $meta; } public function getHardness(){ return 2; } public function getName(){ static $names = [ self::STONE => "Stone", self::SANDSTONE => "Sandstone", self::WOODEN => "Wooden", self::COBBLESTONE => "Cobblestone", self::BRICK => "Brick", self::STONE_BRICK => "Stone Brick", self::QUARTZ => "Quartz", self::NETHER_BRICK => "Nether Brick", ]; return (($this->meta & 0x08) > 0 ? "Upper " : "") . $names[$this->meta & 0x07] . " Slab"; } public function getToolType(){ return Tool::TYPE_PICKAXE; } public function getDrops(Item $item){ if($item->isPickaxe() >= Tool::TIER_WOODEN){ return [ [$this->id, $this->meta & 0x07, 1], ]; }else{ return []; } } }