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(); }
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(); }
/** * @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; }