public function __construct($meta = 0) { parent::__construct(self::SIGN_POST, $meta, "Sign Post"); $this->isSolid = false; $this->isFullBlock = false; $this->hardness = 5; }
public function __construct($meta = 0) { Transparent::__construct(self::LEAVES, $meta, "Leaves"); $names = [self::ACACIA => "Acacia Leaves", self::DARK_OAK => "Dark Oak Leaves"]; $this->name = $names[$this->meta & 0x3]; $this->hardness = 1; }
public function __construct($meta = 0) { parent::__construct(self::LADDER, $meta, "Ladder"); $this->isSolid = false; $this->isFullBlock = false; $this->hardness = 2; }
public function __construct($meta = 0) { parent::__construct(self::LEAVES, $meta, "Leaves"); $names = [self::OAK => "Oak Leaves", self::SPRUCE => "Spruce Leaves", self::BIRCH => "Birch Leaves", self::JUNGLE => "Jungle Leaves"]; $this->name = $names[$this->meta & 0x3]; $this->hardness = 1; }
public function __construct($type = 0) { parent::__construct(self::BED_BLOCK, $type, "Bed Block"); $this->isActivable = true; $this->isFullBlock = false; $this->hardness = 1; }
public function __construct($meta = 0) { parent::__construct(self::CAKE_BLOCK, 0, "Cake Block"); $this->isFullBlock = false; $this->isActivable = true; $this->meta = $meta & 0x7; $this->hardness = 2.5; }
public function __construct($id, $meta = 0, $name = "Unknown") { parent::__construct($id, $meta, $name); if (($this->meta & 0x4) === 0x4) { $this->isFullBlock = true; } else { $this->isFullBlock = false; } $this->hardness = 30; }
public function __construct($meta = 0) { parent::__construct(self::FENCE_GATE, $meta, "Fence Gate"); $this->isActivable = true; if (($this->meta & 0x4) === 0x4) { $this->isFullBlock = true; } else { $this->isFullBlock = false; } $this->hardness = 15; }
public function __construct($meta = 0) { parent::__construct(self::TRAPDOOR, $meta, "Trapdoor"); $this->isActivable = true; if (($this->meta & 0x4) === 0x4) { $this->isFullBlock = false; } else { $this->isFullBlock = true; } $this->hardness = 15; }
public function __construct($meta = 0) { $meta &= 0x1; parent::__construct(self::STONE_WALL, $meta, "Cobblestone Wall"); if ($meta === 1) { $this->name = "Mossy Cobblestone Wall"; } $this->isFullBlock = false; $this->isSolid = false; $this->hardness = 30; }
public function __construct($meta = 0) { parent::__construct(self::WOOD_SLAB, $meta, "Wooden Slab"); $names = [0 => "Oak", 1 => "Spruce", 2 => "Birch", 3 => "Jungle", 4 => "Acacia", 5 => "Dark Oak"]; $this->name = (($this->meta & 0x8) === 0x8 ? "Upper " : "") . $names[$this->meta & 0x7] . " Wooden Slab"; if (($this->meta & 0x8) === 0x8) { $this->isFullBlock = true; } else { $this->isFullBlock = false; } $this->hardness = 15; }
public function __construct($meta = 0) { parent::__construct(self::SLAB, $meta, "Slab"); $names = [0 => "Stone", 1 => "Sandstone", 2 => "Wooden", 3 => "Cobblestone", 4 => "Brick", 5 => "Stone Brick", 6 => "Quartz", 7 => ""]; $this->name = (($this->meta & 0x8) === 0x8 ? "Upper " : "") . $names[$this->meta & 0x7] . " Slab"; if (($this->meta & 0x8) === 0x8) { $this->isFullBlock = true; } else { $this->isFullBlock = false; } $this->hardness = 30; }
public function __construct() { parent::__construct(self::GLOWSTONE_BLOCK, 0, "Glowstone"); $this->hardness = 1.5; }
public function __construct($meta = 0) { parent::__construct(self::CHEST, $meta, "Chest"); $this->isActivable = true; $this->hardness = 15; }
public function __construct() { parent::__construct(self::GLASS, 0, "Glass"); $this->hardness = 1.5; }
public function __construct($id, $meta = 0, $name = "Unknown") { parent::__construct($id, $meta, $name); $this->isSolid = false; }
public function __construct() { parent::__construct(self::ICE, 0, "Ice"); $this->hardness = 2.5; }
public function __construct() { parent::__construct(self::FENCE, 0, "Fence"); $this->isFullBlock = false; $this->hardness = 15; }
public function __construct() { parent::__construct(self::MELON_BLOCK, 0, "Melon Block"); $this->hardness = 5; }