当前位置: 首页>>代码示例>>PHP>>正文


PHP Item::__construct方法代码示例

本文整理汇总了PHP中BukkitPE\item\Item::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Item::__construct方法的具体用法?PHP Item::__construct怎么用?PHP Item::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BukkitPE\item\Item的用法示例。


在下文中一共展示了Item::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 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));
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:8,代码来源:Dye.php

示例2: __construct

 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";
     }
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:15,代码来源:Boat.php

示例3: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::PAINTING, 0, $count, "Painting");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:4,代码来源:Painting.php

示例4: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::TRIPWIRE);
     parent::__construct(self::STRING, $meta, $count, "String");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:StringItem.php

示例5: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::REDSTONE_WIRE);
     parent::__construct(self::REDSTONE, 0, $count, "Redstone");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:Redstone.php

示例6: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::PUMPKIN_STEM);
     parent::__construct(self::PUMPKIN_SEEDS, 0, $count, "Pumpkin Seeds");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:PumpkinSeeds.php

示例7: __construct

 public function __construct($id, $meta = 0, $count = 1, $name = "Unknown")
 {
     parent::__construct($id, $meta, $count, $name);
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:4,代码来源:Tool.php

示例8: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Block::SKULL_BLOCK);
     parent::__construct(self::SKULL, $meta, $count, "Skull");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:Skull.php

示例9: __construct

 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");
 }
开发者ID:gitter-badger,项目名称:BukkitPE,代码行数:5,代码来源:DarkOakDoor.php

示例10: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::BEETROOT_BLOCK);
     parent::__construct(self::BEETROOT_SEEDS, 0, $count, "Beetroot Seeds");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:BeetrootSeeds.php

示例11: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::WOODEN_DOOR_BLOCK);
     parent::__construct(self::WOODEN_DOOR, 0, $count, "Wooden Door");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:WoodenDoor.php

示例12: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::ACACIA_DOOR_BLOCK);
     parent::__construct(self::ACACIA_DOOR, 0, $count, "Acacia Door");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:AcaciaDoor.php

示例13: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::SIGN_POST);
     parent::__construct(self::SIGN, 0, $count, "Sign");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:Sign.php

示例14: __construct

 public function __construct($meta = 0, $count = 1)
 {
     $this->block = Block::get(Item::MELON_STEM);
     parent::__construct(self::MELON_SEEDS, 0, $count, "Melon Seeds");
 }
开发者ID:MunkySkunk,项目名称:BukkitPE,代码行数:5,代码来源:MelonSeeds.php

示例15: __construct

 public function __construct($meta = 0, $count = 1)
 {
     parent::__construct(self::SPAWN_EGG, $meta, $count, "Spawn Egg");
 }
开发者ID:gitter-badger,项目名称:BukkitPE,代码行数:4,代码来源:SpawnEgg.php


注:本文中的BukkitPE\item\Item::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。