aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/LevelParticlesPacket.h
blob: c7870a8e186ba49575759106ab6b708efb4c7bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once

#include "Packet.h"

class LevelParticlesPacket : public Packet, public enable_shared_from_this<LevelParticlesPacket>
{
private:
	wstring name;
	float x;
	float y;
	float z;
	float xDist;
	float yDist;
	float zDist;
	float maxSpeed;
	int count;

public:
	LevelParticlesPacket();
	LevelParticlesPacket(const wstring &name, float x, float y, float z, float xDist, float yDist, float zDist, float maxSpeed, int count);

	void read(DataInputStream *dis);
	void write(DataOutputStream *dos);
	wstring getName();
	double getX();
	double getY();
	double getZ();
	float getXDist();
	float getYDist();
	float getZDist();
	float getMaxSpeed();
	int getCount();
	void handle(PacketListener *listener);
	int getEstimatedSize();

public:
	static shared_ptr<Packet> create() { return std::make_shared<LevelParticlesPacket>(); }
	virtual int getId() { return 63; }
};