Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
791 B · 39 lines
C++
at master
123456789101112131415161718192021222324252627282930313233343536373839#include "stdafx.h"#include "net.minecraft.world.effect.h"#include "InputOutputStream.h"#include "PacketListener.h"#include "RemoveMobEffectPacket.h"
RemoveMobEffectPacket::RemoveMobEffectPacket(){}
RemoveMobEffectPacket::RemoveMobEffectPacket(int entityId, MobEffectInstance *effect){ this->entityId = entityId; this->effectId = (byte) (effect->getId() & 0xff);}
void RemoveMobEffectPacket::read(DataInputStream *dis){ entityId = dis->readInt(); effectId = dis->readByte();}
void RemoveMobEffectPacket::write(DataOutputStream *dos){ dos->writeInt(entityId); dos->writeByte(effectId);}
void RemoveMobEffectPacket::handle(PacketListener *listener){ listener->handleRemoveMobEffect(shared_from_this());}
int RemoveMobEffectPacket::getEstimatedSize(){ return 5;}