本文整理匯總了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;
}