feat: armorstand from decomp
This commit is contained in:
@@ -1,39 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#pragma once
|
||||
#include "Packet.h"
|
||||
#include "../Minecraft.Client/ParticleType.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;
|
||||
|
||||
const ParticleType* type;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float xDist;
|
||||
float yDist;
|
||||
float zDist;
|
||||
float maxSpeed;
|
||||
int count;
|
||||
bool overrideLimiter;
|
||||
int* params;
|
||||
int paramCount;
|
||||
|
||||
public:
|
||||
LevelParticlesPacket();
|
||||
LevelParticlesPacket(const wstring &name, float x, float y, float z, float xDist, float yDist, float zDist, float maxSpeed, int count);
|
||||
LevelParticlesPacket();
|
||||
LevelParticlesPacket(const ParticleType* type, bool overrideLimiter,
|
||||
float x, float y, float z,
|
||||
float xDist, float yDist, float zDist,
|
||||
float maxSpeed, int count,
|
||||
arrayWithLength<int> data);
|
||||
~LevelParticlesPacket();
|
||||
|
||||
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();
|
||||
void read(DataInputStream* dis) override;
|
||||
void write(DataOutputStream* dos) override;
|
||||
|
||||
public:
|
||||
static shared_ptr<Packet> create() { return std::make_shared<LevelParticlesPacket>(); }
|
||||
virtual int getId() { return 63; }
|
||||
const ParticleType* getType() { return type; }
|
||||
double getX() { return x; }
|
||||
double getY() { return y; }
|
||||
double getZ() { return z; }
|
||||
double getXDist() { return xDist; }
|
||||
double getYDist() { return yDist; }
|
||||
double getZDist() { return zDist; }
|
||||
double getMaxSpeed() { return maxSpeed; }
|
||||
int getCount() { return count; }
|
||||
bool isOverrideLimiter() { return overrideLimiter; }
|
||||
int* getParams() { return params; }
|
||||
int getParamCount() { return paramCount; }
|
||||
|
||||
void handle(PacketListener* listener) override;
|
||||
int getEstimatedSize() override;
|
||||
|
||||
static shared_ptr<Packet> create() { return std::make_shared<LevelParticlesPacket>(); }
|
||||
virtual int getId() override { return 63; }
|
||||
};
|
||||
Reference in New Issue
Block a user