예제 #1
0
 /**
  * @param Vector3 $pos
  * @param int $text
  * @param string $title
  */
 public function __construct(Vector3 $pos, $text, $title = "")
 {
     parent::__construct($pos->x, $pos->y, $pos->z);
     $this->text = $text;
     $this->title = $title;
 }
예제 #2
0
 public function __construct(Vector3 $pos, $id, $data = 0)
 {
     parent::__construct($pos->x, $pos->y, $pos->z);
     $this->id = $id & 0xfff;
     $this->data = $data;
 }
예제 #3
0
 public function __construct(Vector3 $pos, $width = 0, $height = 0)
 {
     parent::__construct($pos->x, $pos->y, $pos->z);
     $this->width = $width;
     $this->height = $height;
 }
예제 #4
0
 public function __construct(Vector3 $pos, Block $b)
 {
     parent::__construct($pos->x, $pos->y, $pos->z);
     $this->data = $b->getId() + ($b->getDamage() << 12);
 }