public function getDrops(Item $item)
 {
     if ($item->isPickaxe()) {
         return [$this->id, 0, 1];
     }
     return [];
 }
예제 #2
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_DIAMOND) {
         return [[Item::OBSIDIAN, 0, 1]];
     } else {
         return [];
     }
 }
예제 #3
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::GOLD_ORE, 0, 1]];
     } else {
         return [];
     }
 }
예제 #4
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[$this->getDamage() === 0 ? Item::COBBLESTONE : Item::STONE, $this->getDamage(), 1]];
     } else {
         return [];
     }
 }
예제 #5
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::STONE_BRICKS, $this->meta & 0x3, 1]];
     } else {
         return [];
     }
 }
예제 #6
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[$this->id, $this->meta, 1]];
     } else {
         return [];
     }
 }
예제 #7
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::COAL, 0, 1]];
     } else {
         return [];
     }
 }
예제 #8
0
 public function getDrops(Item $item)
 {
     $drops = [];
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         $drops[] = [Item::BREWING_STAND, 0, 1];
     }
     return $drops;
 }
예제 #9
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::LAPIS_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
예제 #10
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_GOLD) {
         return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]];
     } else {
         return [];
     }
 }
예제 #11
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::QUARTZ_BLOCK, $this->meta & 0x3, 1]];
     } else {
         return [];
     }
 }
예제 #12
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::DYE, 4, mt_rand(4, 8)]];
     } else {
         return [];
     }
 }
예제 #13
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::SLAB, $this->meta & 0x7, 2]];
     } else {
         return [];
     }
 }
예제 #14
0
 public function getDrops(Item $item)
 {
     $damage = $this->getDamage();
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         if ($damage >= 0 && $damage <= 3) {
             //Anvil
             return [[$this->id, 0, 1]];
         } elseif ($damage >= 4 && $damage <= 7) {
             //Slightly Anvil
             return [[$this->id, $this->meta & 0x4, 1]];
         } elseif ($damage >= 8 && $damage <= 11) {
             //Very Damaged Anvil
             return [[$this->id, $this->meta & 0x8, 1]];
         }
     } else {
         return [];
     }
 }
예제 #15
0
 public function getDrops(Item $item)
 {
     $drops = [];
     if ($item->isPickaxe() >= 1) {
         $drops[] = [Item::FURNACE, 0, 1];
     }
     return $drops;
 }