__construct() public method

public __construct ( $x, $y, $z )
コード例 #1
0
 public function __construct($x, $y, $z, $id, $class, $data)
 {
     parent::__construct($x, $y, $z);
     $this->id = $id;
     $this->class = $class;
     $this->data = $data;
 }
コード例 #2
0
 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
0
ファイル: Bookmark.php プロジェクト: GoneTone/WorldEditArt
 /**
  * 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;
 }