mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 12:44:36 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
39 lines
822 B
C++
39 lines
822 B
C++
#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;
|
|
} |