Beispiel #1
0
 public function __construct($meta = 0, $count = 1)
 {
     if ($meta === self::COCOA_BEANS) {
         $this->block = Block::get(Item::COCOA_POD);
         $this->meta = 1;
     }
     parent::__construct(self::DYE, $meta, $count, $this->getNameByMeta($meta));
 }
Beispiel #2
0
 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::BOAT, $meta, $count, "Oak Boat");
     if ($this->meta === 1) {
         $this->name = "Spruce Boat";
     } elseif ($this->meta === 2) {
         $this->name = "Birch Boat";
     } elseif ($this->meta === 3) {
         $this->name = "Jungle Boat";
     } elseif ($this->meta === 4) {
         $this->name = "Acacia Boat";
     } elseif ($this->meta === 5) {
         $this->name = "Dark Oak Boat";
     }
 }
Beispiel #3
0
 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::PAINTING, 0, $count, "Painting");
 }
Beispiel #4
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::TRIPWIRE);
     parent::__construct(self::STRING, $meta, $count, "String");
 }
Beispiel #5
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::REDSTONE_WIRE);
     parent::__construct(self::REDSTONE, 0, $count, "Redstone");
 }
Beispiel #6
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::PUMPKIN_STEM);
     parent::__construct(self::PUMPKIN_SEEDS, 0, $count, "Pumpkin Seeds");
 }
Beispiel #7
0
 public function __construct($id, $meta = 0, $count = 1, $name = "Unknown")
 {
     parent::__construct($id, $meta, $count, $name);
 }
Beispiel #8
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Block::SKULL_BLOCK);
     parent::__construct(self::SKULL, $meta, $count, "Skull");
 }
Beispiel #9
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::DARK_OAK_DOOR_BLOCK);
     parent::__construct(self::DARK_OAK_DOOR, 0, $count, "Dark Oak Door");
 }
Beispiel #10
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::BEETROOT_BLOCK);
     parent::__construct(self::BEETROOT_SEEDS, 0, $count, "Beetroot Seeds");
 }
Beispiel #11
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::WOODEN_DOOR_BLOCK);
     parent::__construct(self::WOODEN_DOOR, 0, $count, "Wooden Door");
 }
Beispiel #12
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::ACACIA_DOOR_BLOCK);
     parent::__construct(self::ACACIA_DOOR, 0, $count, "Acacia Door");
 }
Beispiel #13
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::SIGN_POST);
     parent::__construct(self::SIGN, 0, $count, "Sign");
 }
Beispiel #14
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::MELON_STEM);
     parent::__construct(self::MELON_SEEDS, 0, $count, "Melon Seeds");
 }
Beispiel #15
0
 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::SPAWN_EGG, $meta, $count, "Spawn Egg");
 }
Beispiel #16
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(self::CAKE_BLOCK);
     parent::__construct(self::CAKE, 0, $count, "Cake");
 }
Beispiel #17
0
 public function __construct(Block $block, $meta = 0, $count = 1)
 {
     $this->block = $block;
     parent::__construct($block->getId(), $block->getDamage(), $count, $block->getName());
 }
Beispiel #18
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::BIRCH_DOOR_BLOCK);
     parent::__construct(self::BIRCH_DOOR, 0, $count, "Birch Door");
 }
Beispiel #19
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Block::FLOWER_POT_BLOCK);
     parent::__construct(self::FLOWER_POT, 0, $count, "Flower Pot");
 }
Beispiel #20
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::WHEAT_BLOCK);
     parent::__construct(self::WHEAT_SEEDS, 0, $count, "Wheat Seeds");
 }
Beispiel #21
0
 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::FISHING_ROD, 0, $count, "Fishing Rod");
 }
Beispiel #22
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::SPRUCE_DOOR_BLOCK);
     parent::__construct(self::SPRUCE_DOOR, 0, $count, "Spruce Door");
 }
Beispiel #23
0
 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::NETHER_WART, $meta, $count, "Nether Wart");
 }
Beispiel #24
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::SUGARCANE_BLOCK);
     parent::__construct(self::SUGARCANE, 0, $count, "Sugar Cane");
 }
Beispiel #25
0
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::BED_BLOCK);
     parent::__construct(self::BED, 0, $count, "Bed");
 }
 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::BREWING_STAND);
     parent::__construct(self::BREWING_STAND_FULL, 0, $count, "Brewing Stand");
 }
Beispiel #27
0
 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::MINECART, $meta, $count, "Minecart");
 }