本文整理汇总了PHP中pocketmine\level\Location::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Location::__construct方法的具体用法?PHP Location::__construct怎么用?PHP Location::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pocketmine\level\Location
的用法示例。
在下文中一共展示了Location::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(Location $loc, $name, $skin, $skinName, Item $item, $message = "")
{
parent::__construct($loc->x, $loc->y, $loc->z, $loc->yaw, $loc->pitch, $loc->level);
$this->eid = Entity::$entityCount++;
$this->skin = $skin;
$this->skinName = $skinName;
$this->name = $name;
$this->item = $item;
$this->message = $message;
$this->uuid = UUID::fromRandom();
}
示例2: __construct
public function __construct(Main $plugin, Location $loc, $name, $skin, $skinId, Item $item, $message = "", $command = null)
{
parent::__construct($loc->x, $loc->y, $loc->z, $loc->yaw, $loc->pitch, $loc->level);
$this->plugin = $plugin;
$this->eid = Entity::$entityCount++;
$this->skin = $skin;
$this->skinId = $skinId;
$this->name = $name;
$this->item = $item;
$this->message = $message;
$this->command = $command;
$this->uuid = UUID::fromRandom();
}
示例3: __construct
/**
* @param string $name
* @param int $x
* @param int $y
* @param int $z
* @param Level $level
* @param float $yaw
* @param float $pitch
*/
public function __construct($name, $x, $y, $z, Level $level, $yaw, $pitch)
{
parent::__construct($x, $y, $z, $yaw, $pitch, $level);
$this->name = $name;
}