__construct() public method

public __construct ( integer $x, integer $y, integer $z, float $yaw, float $pitch, Level $level = null )
$x integer
$y integer
$z integer
$yaw float
$pitch float
$level Level
Example #1
0
 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();
 }
Example #2
0
File: NPC.php Project: onebone/NPC
 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();
 }
Example #3
0
 /**
  * @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;
 }