mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-27 01:55:38 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class ContainerSetContentPacket : public Packet, public std::enable_shared_from_this<ContainerSetContentPacket>
|
||||
{
|
||||
class ContainerSetContentPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<ContainerSetContentPacket> {
|
||||
public:
|
||||
int containerId;
|
||||
int containerId;
|
||||
ItemInstanceArray items;
|
||||
|
||||
ContainerSetContentPacket();
|
||||
~ContainerSetContentPacket();
|
||||
ContainerSetContentPacket(int containerId, std::vector<std::shared_ptr<ItemInstance> > *newItems);
|
||||
ContainerSetContentPacket();
|
||||
~ContainerSetContentPacket();
|
||||
ContainerSetContentPacket(
|
||||
int containerId, std::vector<std::shared_ptr<ItemInstance> >* newItems);
|
||||
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual int getEstimatedSize();
|
||||
virtual void read(DataInputStream* dis);
|
||||
virtual void write(DataOutputStream* dos);
|
||||
virtual void handle(PacketListener* listener);
|
||||
virtual int getEstimatedSize();
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new ContainerSetContentPacket()); }
|
||||
virtual int getId() { return 104; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new ContainerSetContentPacket());
|
||||
}
|
||||
virtual int getId() { return 104; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user