|
| | __construct (Vector3 $pos, $instrument=self::INSTRUMENT_PIANO, $pitch=0) |
| |
| | encode () |
| |
| | __construct (Vector3 $pos, $id, $pitch=0) |
| |
| | getPitch () |
| |
| | setPitch ($pitch) |
| |
| | encode () |
| |
| | encode () |
| |
| | __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 () |
| |
◆ __construct()
| __construct |
( |
Vector3 |
$pos, |
|
|
|
$instrument = self::INSTRUMENT_PIANO, |
|
|
|
$pitch = 0 |
|
) |
| |
NoteblockSound constructor.
- Parameters
-
| Vector3 | $pos | |
| int | $instrument | |
| int | $pitch | |
◆ encode()
- Returns
- array
59 $pk =
new BlockEventPacket();
66 $pk2 =
new LevelSoundEventPacket();
◆ $instrument
◆ $pitch
◆ INSTRUMENT_BASS
| const INSTRUMENT_BASS = 4 |
◆ INSTRUMENT_BASS_DRUM
| const INSTRUMENT_BASS_DRUM = 1 |
◆ INSTRUMENT_CLICK
| const INSTRUMENT_CLICK = 2 |
◆ INSTRUMENT_PIANO
| const INSTRUMENT_PIANO = 0 |
◆ INSTRUMENT_TABOUR
| const INSTRUMENT_TABOUR = 3 |
The documentation for this class was generated from the following file:
- src/pocketmine/level/sound/NoteblockSound.php