本文整理汇总了PHP中pocketmine\math\Vector3::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Vector3::__construct方法的具体用法?PHP Vector3::__construct怎么用?PHP Vector3::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pocketmine\math\Vector3
的用法示例。
在下文中一共展示了Vector3::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($x, $y, $z, $id, $class, $data)
{
parent::__construct($x, $y, $z);
$this->id = $id;
$this->class = $class;
$this->data = $data;
}
示例2: __construct
public function __construct($x, $y, $z, $nameTag, $yaw, $pitch, Item $item, $skin, $slim = false)
{
parent::__construct($x, $y, $z);
$this->nameTag = $nameTag;
$this->yaw = $yaw;
$this->pitch = $pitch;
$this->item = $item;
$this->skin = $skin;
$this->slim = $slim;
$this->metadata = [Entity::DATA_FLAGS => [Entity::DATA_TYPE_BYTE, 0], Entity::DATA_AIR => [Entity::DATA_TYPE_SHORT, 300], Entity::DATA_NAMETAG => [Entity::DATA_TYPE_STRING, $this->nameTag], Entity::DATA_SHOW_NAMETAG => [Entity::DATA_TYPE_BYTE, 1], Entity::DATA_SILENT => [Entity::DATA_TYPE_BYTE, 1], Entity::DATA_NO_AI => [Entity::DATA_TYPE_BYTE, 1]];
}
示例3: __construct
/**
* Bookmark constructor.
*
* @param number $x
* @param number $y
* @param number $z
* @param string $levelName
*/
public function __construct($x, $y, $z, $levelName)
{
parent::__construct($x, $y, $z);
$this->levelName = $levelName;
}