mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 06:34:49 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -5,48 +5,38 @@
|
||||
#include "PacketListener.h"
|
||||
#include "XZPacket.h"
|
||||
|
||||
const int XZPacket::STRONGHOLD = 0;
|
||||
|
||||
XZPacket::~XZPacket() {}
|
||||
|
||||
const int XZPacket::STRONGHOLD = 0;
|
||||
|
||||
XZPacket::~XZPacket()
|
||||
{
|
||||
XZPacket::XZPacket() {
|
||||
action = STRONGHOLD;
|
||||
x = 0;
|
||||
z = 0;
|
||||
}
|
||||
|
||||
XZPacket::XZPacket()
|
||||
{
|
||||
action = STRONGHOLD;
|
||||
x = 0;
|
||||
z = 0;
|
||||
XZPacket::XZPacket(char action, int x, int z) {
|
||||
this->action = action;
|
||||
this->x = x;
|
||||
this->z = z;
|
||||
}
|
||||
|
||||
XZPacket::XZPacket(char action, int x, int z)
|
||||
{
|
||||
this->action = action;
|
||||
this->x = x;
|
||||
this->z = z;
|
||||
void XZPacket::handle(PacketListener* listener) {
|
||||
listener->handleXZ(shared_from_this());
|
||||
}
|
||||
|
||||
void XZPacket::handle(PacketListener *listener)
|
||||
void XZPacket::read(DataInputStream* dis) // throws IOException
|
||||
{
|
||||
listener->handleXZ(shared_from_this());
|
||||
action = dis->read();
|
||||
x = dis->readInt();
|
||||
z = dis->readInt();
|
||||
}
|
||||
|
||||
void XZPacket::read(DataInputStream *dis) //throws IOException
|
||||
void XZPacket::write(DataOutputStream* dos) // throws IOException
|
||||
{
|
||||
action = dis->read();
|
||||
x = dis->readInt();
|
||||
z = dis->readInt();
|
||||
dos->write(action);
|
||||
dos->writeInt(x);
|
||||
dos->writeInt(z);
|
||||
}
|
||||
|
||||
void XZPacket::write(DataOutputStream *dos) // throws IOException
|
||||
{
|
||||
dos->write(action);
|
||||
dos->writeInt(x);
|
||||
dos->writeInt(z);
|
||||
}
|
||||
|
||||
int XZPacket::getEstimatedSize()
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
int XZPacket::getEstimatedSize() { return 10; }
|
||||
|
||||
Reference in New Issue
Block a user