本文整理汇总了PHP中pocketmine\item\Item::isPickaxe方法的典型用法代码示例。如果您正苦于以下问题:PHP Item::isPickaxe方法的具体用法?PHP Item::isPickaxe怎么用?PHP Item::isPickaxe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pocketmine\item\Item
的用法示例。
在下文中一共展示了Item::isPickaxe方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_DIAMOND) {
return [[Item::OBSIDIAN, 0, 1]];
}
return [];
}
示例2: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_STONE) {
return [[Item::IRON_BLOCK, 0, 1]];
}
return [];
}
示例3: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_STONE) {
return [[Item::DYE, 4, mt_rand(4, 8)]];
}
return [];
}
示例4: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_IRON) {
return [[Item::EMERALD_BLOCK, 0, 1]];
}
return [];
}
示例5: getDrops
public function getDrops(Item $item) : array
{
if ($item->isPickaxe() >= 1) {
return [[MainClass::ITEM_CAULDRON, 0, 1]];
}
return [];
}
示例6: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= 1) {
return [[Item::CAULDRON, 0, 1]];
}
return [];
}
示例7: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_IRON) {
return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]];
}
return [];
}
示例8: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
return [[$this->getDamage() === 0 ? Item::COBBLESTONE : Item::STONE, $this->getDamage(), 1]];
}
return [];
}
示例9: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= 1) {
return [[Item::SLAB, 0, 2]];
}
return [];
}
示例10: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
return [[Item::QUARTZ, 0, 1]];
}
return [];
}
示例11: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_IRON) {
return [[Item::DIAMOND, 0, 1]];
}
return [];
}
示例12: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe()) {
return [[$this->id, 0, 1]];
}
return [];
}
示例13: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
return [[Item::REDSTONE_BLOCK, 0, 1]];
}
return [];
}
示例14: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
return [[$this->id, $this->meta, 1]];
}
return [];
}
示例15: getDrops
public function getDrops(Item $item)
{
if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
return [[Item::SANDSTONE, $this->meta & 0x3, 1]];
}
return [];
}