GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
SpellSound Class Reference

Public Member Functions

 __construct (Vector3 $pos, $r=0, $g=0, $b=0)
 
 encode ()
 
- Public Member Functions inherited from Sound
 encode ()
 
- Public Member Functions inherited from Vector3
 __construct ($x=0, $y=0, $z=0)
 
 getX ()
 
 getY ()
 
 getZ ()
 
 getFloorX ()
 
 getFloorY ()
 
 getFloorZ ()
 
 getRight ()
 
 getUp ()
 
 getForward ()
 
 getSouth ()
 
 getWest ()
 
 add ($x, $y=0, $z=0)
 
 subtract ($x=0, $y=0, $z=0)
 
 multiply ($number)
 
 divide ($number)
 
 ceil ()
 
 floor ()
 
 round ()
 
 abs ()
 
 getSide ($side, $step=1)
 
 asVector3 ()
 
 distance (Vector3 $pos)
 
 distanceSquared (Vector3 $pos)
 
 maxPlainDistance ($x=0, $z=0)
 
 length ()
 
 lengthSquared ()
 
 normalize ()
 
 dot (Vector3 $v)
 
 cross (Vector3 $v)
 
 equals (Vector3 $v)
 
 getIntermediateWithXValue (Vector3 $v, $x)
 
 getIntermediateWithYValue (Vector3 $v, $y)
 
 getIntermediateWithZValue (Vector3 $v, $z)
 
 setComponents ($x, $y, $z)
 
 fromObjectAdd (Vector3 $pos, $x, $y, $z)
 
 __toString ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Vector3
static getOppositeSide ($side)
 
static createRandomDirection (Random $random)
 
- Data Fields inherited from Vector3
const SIDE_DOWN = 0
 
const SIDE_UP = 1
 
const SIDE_NORTH = 2
 
const SIDE_SOUTH = 3
 
const SIDE_WEST = 4
 
const SIDE_EAST = 5
 
 $x
 
 $y
 
 $z
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Vector3  $pos,
  $r = 0,
  $g = 0,
  $b = 0 
)

SpellSound constructor.

Parameters
Vector3$pos
int$r
int$g
int$b
40  {
41  /*parent::__construct($pos->x, $pos->y, $pos->z);
42  $this->id = (int) LevelEventPacket::EVENT_SOUND_SPELL;
43  $this->color = ($r << 16 | $g << 8 | $b) & 0xffffff;*/
44  }

Member Function Documentation

◆ encode()

encode ( )
Returns
null
49  {
50  return null;
51  /*$pk = new LevelEventPacket;
52  $pk->evid = $this->id;
53  $pk->x = $this->x;
54  $pk->y = $this->y;
55  $pk->z = $this->z;
56  $pk->data = $this->color;
57 
58  return $pk;*/
59  }

The documentation for this class was generated from the following file: