mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 07:38:13 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class ContainerSetSlotPacket : public Packet, public std::enable_shared_from_this<ContainerSetSlotPacket>
|
||||
{
|
||||
class ContainerSetSlotPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<ContainerSetSlotPacket> {
|
||||
public:
|
||||
static const int CONTAINER;
|
||||
static const int CONTAINER;
|
||||
static const int WORKBENCH;
|
||||
static const int FURNACE;
|
||||
|
||||
@@ -14,17 +14,18 @@ public:
|
||||
int slot;
|
||||
std::shared_ptr<ItemInstance> item;
|
||||
|
||||
ContainerSetSlotPacket();
|
||||
ContainerSetSlotPacket(int containerId, int slot, std::shared_ptr<ItemInstance> item);
|
||||
ContainerSetSlotPacket();
|
||||
ContainerSetSlotPacket(int containerId, int slot,
|
||||
std::shared_ptr<ItemInstance> item);
|
||||
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual int getEstimatedSize();
|
||||
virtual void handle(PacketListener* listener);
|
||||
virtual void read(DataInputStream* dis);
|
||||
virtual void write(DataOutputStream* dos);
|
||||
virtual int getEstimatedSize();
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new ContainerSetSlotPacket()); }
|
||||
virtual int getId() { return 103; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new ContainerSetSlotPacket());
|
||||
}
|
||||
virtual int getId() { return 103; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user