meta = $meta; } public function getHardness(){ return 2; } public function getToolType(){ return Tool::TYPE_PICKAXE; } public function getName(){ static $names = [ 0 => "Stone", 1 => "Sandstone", 2 => "Wooden", 3 => "Cobblestone", 4 => "Brick", 5 => "Stone Brick", 6 => "Quartz", 7 => "Nether Brick", ]; return "Double " . $names[$this->meta & 0x07] . " Slab"; } public function getDrops(Item $item){ if($item->isPickaxe() >= Tool::TIER_WOODEN){ return [ [Item::STONE_SLAB, $this->meta & 0x07, 2], ]; }else{ return []; } } }