mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-24 00:10:17 +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,40 @@
|
||||
#include "stdafx.h"
|
||||
#include <iostream>
|
||||
#include "InputOutputStream.h"
|
||||
#include "net.minecraft.world.entity.h"
|
||||
#include "PacketListener.h"
|
||||
#include "ContainerButtonClickPacket.h"
|
||||
|
||||
|
||||
|
||||
ContainerButtonClickPacket::ContainerButtonClickPacket()
|
||||
{
|
||||
}
|
||||
|
||||
ContainerButtonClickPacket::ContainerButtonClickPacket(int containerId, int buttonId)
|
||||
{
|
||||
this->containerId = containerId;
|
||||
this->buttonId = buttonId;
|
||||
}
|
||||
|
||||
void ContainerButtonClickPacket::handle(PacketListener *listener)
|
||||
{
|
||||
listener->handleContainerButtonClick(shared_from_this());
|
||||
}
|
||||
|
||||
void ContainerButtonClickPacket::read(DataInputStream *dis)
|
||||
{
|
||||
containerId = dis->readByte();
|
||||
buttonId = dis->readByte();
|
||||
}
|
||||
|
||||
void ContainerButtonClickPacket::write(DataOutputStream *dos)
|
||||
{
|
||||
dos->writeByte(containerId);
|
||||
dos->writeByte(buttonId);
|
||||
}
|
||||
|
||||
int ContainerButtonClickPacket::getEstimatedSize()
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
Reference in new issue
Block a user