isPickaxe() public method

public isPickaxe ( )
コード例 #1
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_DIAMOND) {
         return [[Item::OBSIDIAN, 0, 1]];
     }
     return [];
 }
コード例 #2
0
ファイル: Iron.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::IRON_BLOCK, 0, 1]];
     }
     return [];
 }
コード例 #3
0
ファイル: LapisOre.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::DYE, 4, mt_rand(4, 8)]];
     }
     return [];
 }
コード例 #4
0
ファイル: Emerald.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::EMERALD_BLOCK, 0, 1]];
     }
     return [];
 }
コード例 #5
0
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 1) {
         return [[MainClass::ITEM_CAULDRON, 0, 1]];
     }
     return [];
 }
コード例 #6
0
ファイル: Cauldron.php プロジェクト: ClearSkyTeam/ClearSky
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::CAULDRON, 0, 1]];
     }
     return [];
 }
コード例 #7
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]];
     }
     return [];
 }
コード例 #8
0
ファイル: Stone.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[$this->getDamage() === 0 ? Item::COBBLESTONE : Item::STONE, $this->getDamage(), 1]];
     }
     return [];
 }
コード例 #9
0
ファイル: DoubleSlab.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::SLAB, 0, 2]];
     }
     return [];
 }
コード例 #10
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::QUARTZ, 0, 1]];
     }
     return [];
 }
コード例 #11
0
ファイル: DiamondOre.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_IRON) {
         return [[Item::DIAMOND, 0, 1]];
     }
     return [];
 }
コード例 #12
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe()) {
         return [[$this->id, 0, 1]];
     }
     return [];
 }
コード例 #13
0
ファイル: Redstone.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::REDSTONE_BLOCK, 0, 1]];
     }
     return [];
 }
コード例 #14
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[$this->id, $this->meta, 1]];
     }
     return [];
 }
コード例 #15
0
ファイル: Sandstone.php プロジェクト: robozeri/Yuriko-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::SANDSTONE, $this->meta & 0x3, 1]];
     }
     return [];
 }
コード例 #16
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::QUARTZ_BLOCK, $this->meta & 0x3, 1]];
     } else {
         return [];
     }
 }
コード例 #17
0
ファイル: Coal.php プロジェクト: NewDelion/PocketMine-0.13.x
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::COAL_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #18
0
ファイル: RedSandstone.php プロジェクト: NUMAKAGE/NIGHTMARE
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::RED_SANDSTONE, $this->meta & 0x3, 1]];
     } else {
         return [];
     }
 }
コード例 #19
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 4) {
         return [[Item::DIAMOND, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #20
0
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::REDSTONE_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #21
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::IRON_BARS, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #22
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 4) {
         return [[Item::EMERALD_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #23
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::BRICKS_BLOCK, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #24
0
ファイル: DoubleSlab.php プロジェクト: iTXTech/Genisys
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 1) {
         return [[Item::SLAB, $this->meta & 0x7, 2]];
     } else {
         return [];
     }
 }
コード例 #25
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::MOSS_STONE, $this->meta, 1]];
     } else {
         return [];
     }
 }
コード例 #26
0
ファイル: QuartzOre.php プロジェクト: zzz1999/ImagicalMine
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_STONE) {
         return [[Item::QUARTZ, 0, mt_rand(4, 8)]];
     } else {
         return [];
     }
 }
コード例 #27
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::NETHER_BRICKS, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #28
0
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
         return [[Item::STONECUTTER, 0, 1]];
     } else {
         return [];
     }
 }
コード例 #29
0
ファイル: RedstoneOre.php プロジェクト: boybook/PocketMine-MP
 public function getDrops(Item $item)
 {
     if ($item->isPickaxe() >= 2) {
         return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]];
     } else {
         return [];
     }
 }
コード例 #30
0
ファイル: Obsidian.php プロジェクト: iTXTech/Genisys
 public function getDrops(Item $item) : array
 {
     if ($item->isPickaxe() >= 5) {
         return [[Item::OBSIDIAN, 0, 1]];
     } else {
         return [];
     }
 }