Initial commit - LCEMP source code (assets excluded)

This commit is contained in:
NOTPIES
2026-03-01 20:29:13 -03:00
commit 21a5a4aef0
2946 changed files with 577259 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
#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;
}