Added more Wood stairs, and planks

This commit is contained in:
Shoghi Cervantes
2013-11-23 15:51:09 +01:00
parent de98dd920b
commit 5fa6c5962e
9 changed files with 132 additions and 4 deletions

View File

@ -23,13 +23,15 @@ class WoodBlock extends SolidBlock{
const OAK = 0;
const SPRUCE = 1;
const BIRCH = 2;
const JUNGLE = 3;
public function __construct($meta = 0){
parent::__construct(WOOD, $meta, "Wood");
$names = array(
WoodBlock::OAK => "Oak Wood",
WoodBlock::SPRUCE => "Spruce Wood",
WoodBlock::BIRCH => "Birch Wood",
3 => "Jungle Wood",
WoodBlock::JUNGLE => "Jungle Wood",
);
$this->name = $names[$this->meta & 0x03];
$this->hardness = 10;