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,34 +4,24 @@
#include "PacketListener.h"
#include "ContainerClosePacket.h"
ContainerClosePacket::ContainerClosePacket() { containerId = 0; }
ContainerClosePacket::ContainerClosePacket()
{
containerId = 0;
ContainerClosePacket::ContainerClosePacket(int containerId) {
this->containerId = containerId;
}
ContainerClosePacket::ContainerClosePacket(int containerId)
{
this->containerId = containerId;
void ContainerClosePacket::handle(PacketListener* listener) {
listener->handleContainerClose(shared_from_this());
}
void ContainerClosePacket::handle(PacketListener *listener)
void ContainerClosePacket::read(DataInputStream* dis) // throws IOException
{
listener->handleContainerClose(shared_from_this());
containerId = (int)dis->readByte();
}
void ContainerClosePacket::read(DataInputStream *dis) //throws IOException
void ContainerClosePacket::write(DataOutputStream* dos) // throws IOException
{
containerId = (int)dis->readByte();
dos->writeByte((uint8_t)containerId);
}
void ContainerClosePacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeByte((uint8_t)containerId);
}
int ContainerClosePacket::getEstimatedSize()
{
return 1;
}
int ContainerClosePacket::getEstimatedSize() { return 1; }