mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-03 17:11:32 +00:00
Initial commit - LCEMP source code (assets excluded)
This commit is contained in:
commit
21a5a4aef0
2946 files changed
+577259
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#include "stdafx.h"
|
||||
#include <iostream>
|
||||
#include "InputOutputStream.h"
|
||||
#include "PacketListener.h"
|
||||
#include "ContainerClosePacket.h"
|
||||
|
||||
|
||||
|
||||
ContainerClosePacket::ContainerClosePacket()
|
||||
{
|
||||
containerId = 0;
|
||||
}
|
||||
|
||||
ContainerClosePacket::ContainerClosePacket(int containerId)
|
||||
{
|
||||
this->containerId = containerId;
|
||||
}
|
||||
|
||||
void ContainerClosePacket::handle(PacketListener *listener)
|
||||
{
|
||||
listener->handleContainerClose(shared_from_this());
|
||||
}
|
||||
|
||||
void ContainerClosePacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
containerId = dis->readByte();
|
||||
}
|
||||
|
||||
void ContainerClosePacket::write(DataOutputStream *dos) //throws IOException
|
||||
{
|
||||
dos->writeByte(containerId);
|
||||
}
|
||||
|
||||
int ContainerClosePacket::getEstimatedSize()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
Reference in new issue
Block a user