the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Packet.h"
4
5class LevelSoundPacket : public Packet, public enable_shared_from_this<LevelSoundPacket>
6{
7public:
8 static const float PITCH_ACCURACY;
9 static const float LOCATION_ACCURACY;
10
11private:
12 int sound;
13 int x;
14 int y;
15 int z;
16 float volume;
17 //int pitch;
18 float pitch;
19
20public:
21 LevelSoundPacket();
22 LevelSoundPacket(int iSound, double x, double y, double z, float volume, float pitch);
23
24 virtual void read(DataInputStream *dis);
25 virtual void write(DataOutputStream *dos);
26 virtual int getSound();
27 double getX();
28 double getY();
29 double getZ();
30 float getVolume();
31 float getPitch();
32 virtual void handle(PacketListener *listener);
33 virtual int getEstimatedSize();
34
35public:
36 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new LevelSoundPacket()); }
37 virtual int getId() { return 62; }
38};