mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Block creating and property handling rewrite, part1
This commit is contained in:
@ -24,10 +24,17 @@ namespace pocketmine\block;
|
||||
use pocketmine\item\Item;
|
||||
|
||||
class WoodStairs extends Stair{
|
||||
|
||||
protected $id = self::WOOD_STAIRS;
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(self::WOOD_STAIRS, $meta, "Wood Stairs");
|
||||
$this->meta = $meta;
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return "Wood Stairs";
|
||||
}
|
||||
|
||||
public function getBreakTime(Item $item){
|
||||
|
||||
switch($item->isAxe()){
|
||||
|
Reference in New Issue
Block a user