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

@@ -4,38 +4,30 @@
#include "PacketListener.h"
#include "TradeItemPacket.h"
TradeItemPacket::TradeItemPacket()
{
containerId = 0;
offer = 0;
TradeItemPacket::TradeItemPacket() {
containerId = 0;
offer = 0;
}
TradeItemPacket::TradeItemPacket(int containerId, int offer)
{
this->containerId = containerId;
this->offer = offer;
TradeItemPacket::TradeItemPacket(int containerId, int offer) {
this->containerId = containerId;
this->offer = offer;
}
void TradeItemPacket::handle(PacketListener *listener)
{
listener->handleTradeItem(shared_from_this());
void TradeItemPacket::handle(PacketListener* listener) {
listener->handleTradeItem(shared_from_this());
}
void TradeItemPacket::read(DataInputStream *dis) //throws IOException
void TradeItemPacket::read(DataInputStream* dis) // throws IOException
{
containerId = dis->readInt();
offer = dis->readInt();
containerId = dis->readInt();
offer = dis->readInt();
}
void TradeItemPacket::write(DataOutputStream *dos) //throws IOException
void TradeItemPacket::write(DataOutputStream* dos) // throws IOException
{
dos->writeInt(containerId);
dos->writeInt(offer);
dos->writeInt(containerId);
dos->writeInt(offer);
}
int TradeItemPacket::getEstimatedSize()
{
return 8;
}
int TradeItemPacket::getEstimatedSize() { return 8; }