public function __construct($type = 0) { parent::__construct(BED_BLOCK, $type, "Bed Block"); $this->isActivable = true; $this->isFullBlock = false; $this->hardness = 1; }
public function __construct($meta = 0) { parent::__construct(LADDER, $meta, "Ladder"); $this->isSolid = false; $this->isFullBlock = false; $this->hardness = 2; }
public function __construct($meta = 0) { parent::__construct(SIGN_POST, $meta, "Sign Post"); $this->isSolid = false; $this->isFullBlock = false; $this->hardness = 5; }
/** * @param int $id * @param int $meta * @param string $name */ public function __construct($id, $meta = 0, $name = "Unknown") { parent::__construct($id, $meta, $name); $this->isFlowable = true; $this->isFullBlock = false; $this->isSolid = false; }
public function __construct($meta = 0) { parent::__construct(LEAVES, $meta, "Leaves"); $names = array(LeavesBlock::OAK => "Oak Leaves", LeavesBlock::SPRUCE => "Spruce Leaves", LeavesBlock::BIRCH => "Birch Leaves", 3 => ""); $this->name = $names[$this->meta & 0x3]; $this->hardness = 1; }
public function __construct($meta = 0) { parent::__construct(CAKE_BLOCK, 0, "Cake Block"); $this->isFullBlock = false; $this->isActivable = true; $this->meta = $meta & 0x7; $this->hardness = 2.5; }
/** * @param int $id * @param int $meta * @param string $name */ public function __construct($id, $meta = 0, $name = "Unknown") { parent::__construct($id, $meta, $name); $this->isLiquid = true; $this->breakable = false; $this->isReplaceable = true; $this->isSolid = false; $this->isFullBlock = true; }
/** * @param int $id * @param int $meta * @param string $name */ 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) { $meta &= 0x1; parent::__construct(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(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(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) { parent::__construct(SLAB, $meta, "Slab"); $names = array(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($meta = 0) { parent::__construct(WOOD_SLAB, $meta, "Wooden Slab"); $names = array(0 => "Oak", 1 => "Spruce", 2 => "Birch", 3 => "Jungle"); $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() { parent::__construct(AIR, 0, "Air"); $this->isActivable = false; $this->breakable = false; $this->isFlowable = true; $this->isTransparent = true; $this->isReplaceable = true; $this->isPlaceable = false; $this->hasPhysics = false; $this->isSolid = false; $this->isFullBlock = true; $this->hardness = 0; }
public function __construct() { parent::__construct(GLASS_PANE, 0, "Glass Pane"); $this->isFullBlock = false; $this->isSolid = false; }
public function __construct() { parent::__construct(IRON_BARS, 0, "Iron Bars"); $this->isFullBlock = false; $this->isSolid = false; }
public function __construct($meta = 0) { parent::__construct(CACTUS, $meta, "Cactus"); $this->isFullBlock = false; $this->hardness = 2; }
public function __construct() { parent::__construct(GLASS, 0, "Glass"); $this->hardness = 1.5; }
public function __construct($meta = 0) { parent::__construct(CHEST, $meta, "Chest"); $this->isActivable = true; $this->hardness = 15; }
public function __construct() { parent::__construct(FENCE, 0, "Fence"); $this->isFullBlock = false; $this->hardness = 15; }
public function __construct($meta = 0) { TransparentBlock::__construct(WALL_SIGN, $meta, "Wall Sign"); }
public function __construct() { parent::__construct(MELON_BLOCK, 0, "Melon Block"); $this->hardness = 5; }
/** * @param int $id * @param int $meta * @param string $name */ public function __construct($id, $meta = 0, $name = "Unknown") { parent::__construct($id, $meta, $name); $this->isSolid = false; }
public function __construct() { parent::__construct(ICE, 0, "Ice"); $this->hardness = 2.5; }
public function __construct() { parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone"); $this->hardness = 1.5; }