chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions

View File

@@ -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; }