예제 #1
0
 public function __construct($type = 0)
 {
     parent::__construct(BED_BLOCK, $type, "Bed Block");
     $this->isActivable = true;
     $this->isFullBlock = false;
     $this->hardness = 1;
 }
예제 #2
0
 public function __construct($meta = 0)
 {
     parent::__construct(LADDER, $meta, "Ladder");
     $this->isSolid = false;
     $this->isFullBlock = false;
     $this->hardness = 2;
 }
예제 #3
0
 public function __construct($meta = 0)
 {
     parent::__construct(SIGN_POST, $meta, "Sign Post");
     $this->isSolid = false;
     $this->isFullBlock = false;
     $this->hardness = 5;
 }
예제 #4
0
 /**
  * @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;
 }
예제 #5
0
 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;
 }
예제 #6
0
 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;
 }
예제 #7
0
 /**
  * @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;
 }
예제 #8
0
 /**
  * @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;
 }
예제 #9
0
 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;
 }
예제 #10
0
 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;
 }
예제 #11
0
 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;
 }
예제 #12
0
 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;
 }
예제 #13
0
 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;
 }
예제 #14
0
 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;
 }
예제 #15
0
 public function __construct()
 {
     parent::__construct(GLASS_PANE, 0, "Glass Pane");
     $this->isFullBlock = false;
     $this->isSolid = false;
 }
예제 #16
0
 public function __construct()
 {
     parent::__construct(IRON_BARS, 0, "Iron Bars");
     $this->isFullBlock = false;
     $this->isSolid = false;
 }
예제 #17
0
 public function __construct($meta = 0)
 {
     parent::__construct(CACTUS, $meta, "Cactus");
     $this->isFullBlock = false;
     $this->hardness = 2;
 }
예제 #18
0
 public function __construct()
 {
     parent::__construct(GLASS, 0, "Glass");
     $this->hardness = 1.5;
 }
예제 #19
0
 public function __construct($meta = 0)
 {
     parent::__construct(CHEST, $meta, "Chest");
     $this->isActivable = true;
     $this->hardness = 15;
 }
예제 #20
0
 public function __construct()
 {
     parent::__construct(FENCE, 0, "Fence");
     $this->isFullBlock = false;
     $this->hardness = 15;
 }
예제 #21
0
 public function __construct($meta = 0)
 {
     TransparentBlock::__construct(WALL_SIGN, $meta, "Wall Sign");
 }
예제 #22
0
 public function __construct()
 {
     parent::__construct(MELON_BLOCK, 0, "Melon Block");
     $this->hardness = 5;
 }
예제 #23
0
 /**
  * @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;
 }
예제 #24
0
 public function __construct()
 {
     parent::__construct(ICE, 0, "Ice");
     $this->hardness = 2.5;
 }
예제 #25
0
 public function __construct()
 {
     parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
     $this->hardness = 1.5;
 }