isPickaxe() public method

public isPickaxe ( )
Example #1
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_DIAMOND) {
         return [[Item::OBSIDIAN, 0, 1]];
     }
     return [];
 }
Example #2
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::IRON_BLOCK, 0, 1]];
     }
     return [];
 }
Example #3
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::DYE, 4, mt_rand(4, 8)]];
     }
     return [];
 }
Example #4
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::EMERALD_BLOCK, 0, 1]];
     }
     return [];
 }
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 1) {
         return [[MainClass::ITEM_CAULDRON, 0, 1]];
     }
     return [];
 }
Example #6
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::CAULDRON, 0, 1]];
     }
     return [];
 }
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]];
     }
     return [];
 }
Example #8
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[$this->getDamage() === 0 ? Item::COBBLESTONE : Item::STONE, $this->getDamage(), 1]];
     }
     return [];
 }
Example #9
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::SLAB, 0, 2]];
     }
     return [];
 }
Example #10
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::QUARTZ, 0, 1]];
     }
     return [];
 }
Example #11
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::DIAMOND, 0, 1]];
     }
     return [];
 }
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe()) {
         return [[$this->id, 0, 1]];
     }
     return [];
 }
Example #13
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::REDSTONE_BLOCK, 0, 1]];
     }
     return [];
 }
Example #14
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[$this->id, $this->meta, 1]];
     }
     return [];
 }
Example #15
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::SANDSTONE, $this->meta & 0x3, 1]];
     }
     return [];
 }
Example #16
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::QUARTZ_BLOCK, $this->meta & 0x3, 1]];
     } else {
         return [];
     }
 }
Example #17
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::COAL_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
Example #18
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::RED_SANDSTONE, $this->meta & 0x3, 1]];
     } else {
         return [];
     }
 }
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 4) {
         return [[Item::DIAMOND, 0, 1]];
     } else {
         return [];
     }
 }
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::REDSTONE_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::IRON_BARS, 0, 1]];
     } else {
         return [];
     }
 }
Example #22
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 4) {
         return [[Item::EMERALD_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
Example #23
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::BRICKS_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
Example #24
0
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::SLAB, $this->meta & 0x7, 2]];
     } else {
         return [];
     }
 }
Example #25
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::MOSS_STONE, $this->meta, 1]];
     } else {
         return [];
     }
 }
Example #26
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::QUARTZ, 0, mt_rand(4, 8)]];
     } else {
         return [];
     }
 }
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::NETHER_BRICKS, 0, 1]];
     } else {
         return [];
     }
 }
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::STONECUTTER, 0, 1]];
     } else {
         return [];
     }
 }
Example #29
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 2) {
         return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]];
     } else {
         return [];
     }
 }
Example #30
0
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 5) {
         return [[Item::OBSIDIAN, 0, 1]];
     } else {
         return [];
     }
 }