the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.effect.h"
3#include "InputOutputStream.h"
4#include "PacketListener.h"
5#include "RemoveMobEffectPacket.h"
6
7
8
9RemoveMobEffectPacket::RemoveMobEffectPacket()
10{
11}
12
13RemoveMobEffectPacket::RemoveMobEffectPacket(int entityId, MobEffectInstance *effect)
14{
15 this->entityId = entityId;
16 this->effectId = (byte) (effect->getId() & 0xff);
17}
18
19void RemoveMobEffectPacket::read(DataInputStream *dis)
20{
21 entityId = dis->readInt();
22 effectId = dis->readByte();
23}
24
25void RemoveMobEffectPacket::write(DataOutputStream *dos)
26{
27 dos->writeInt(entityId);
28 dos->writeByte(effectId);
29}
30
31void RemoveMobEffectPacket::handle(PacketListener *listener)
32{
33 listener->handleRemoveMobEffect(shared_from_this());
34}
35
36int RemoveMobEffectPacket::getEstimatedSize()
37{
38 return 5;
39}