mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 21:58:09 +00:00
TU19: merge Minecraft.World/Network
This commit is contained in:
27
Minecraft.World/Network/Packets/SetDisplayObjectivePacket.h
Normal file
27
Minecraft.World/Network/Packets/SetDisplayObjectivePacket.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class Objective;
|
||||
|
||||
class SetDisplayObjectivePacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<SetDisplayObjectivePacket> {
|
||||
public:
|
||||
int slot;
|
||||
std::wstring objectiveName;
|
||||
|
||||
SetDisplayObjectivePacket();
|
||||
SetDisplayObjectivePacket(int slot, Objective* objective);
|
||||
|
||||
void read(DataInputStream* dis);
|
||||
void write(DataOutputStream* dos);
|
||||
void handle(PacketListener* listener);
|
||||
int getEstimatedSize();
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new SetDisplayObjectivePacket());
|
||||
}
|
||||
virtual int getId() { return 208; }
|
||||
};
|
||||
Reference in New Issue
Block a user