本文整理汇总了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));
}
示例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";
}
}
示例3: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::PAINTING, 0, $count, "Painting");
}
示例4: __construct
public function __construct($meta = 0, $count = 1)
{
$this->block = Block::get(Item::TRIPWIRE);
parent::__construct(self::STRING, $meta, $count, "String");
}
示例5: __construct
public function __construct($meta = 0, $count = 1)
{
$this->block = Block::get(Item::REDSTONE_WIRE);
parent::__construct(self::REDSTONE, 0, $count, "Redstone");
}
示例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");
}
示例7: __construct
public function __construct($id, $meta = 0, $count = 1, $name = "Unknown")
{
parent::__construct($id, $meta, $count, $name);
}
示例8: __construct
public function __construct($meta = 0, $count = 1)
{
$this->block = Block::get(Block::SKULL_BLOCK);
parent::__construct(self::SKULL, $meta, $count, "Skull");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例13: __construct
public function __construct($meta = 0, $count = 1)
{
$this->block = Block::get(Item::SIGN_POST);
parent::__construct(self::SIGN, 0, $count, "Sign");
}
示例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");
}
示例15: __construct
public function __construct($meta = 0, $count = 1)
{
parent::__construct(self::SPAWN_EGG, $meta, $count, "Spawn Egg");
}