mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 07:05:13 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -4,36 +4,26 @@
|
||||
#include "PacketListener.h"
|
||||
#include "RemoveMobEffectPacket.h"
|
||||
|
||||
RemoveMobEffectPacket::RemoveMobEffectPacket() {}
|
||||
|
||||
|
||||
RemoveMobEffectPacket::RemoveMobEffectPacket()
|
||||
{
|
||||
RemoveMobEffectPacket::RemoveMobEffectPacket(int entityId,
|
||||
MobEffectInstance* effect) {
|
||||
this->entityId = entityId;
|
||||
this->effectId = (uint8_t)(effect->getId() & 0xff);
|
||||
}
|
||||
|
||||
RemoveMobEffectPacket::RemoveMobEffectPacket(int entityId, MobEffectInstance *effect)
|
||||
{
|
||||
this->entityId = entityId;
|
||||
this->effectId = (uint8_t) (effect->getId() & 0xff);
|
||||
void RemoveMobEffectPacket::read(DataInputStream* dis) {
|
||||
entityId = dis->readInt();
|
||||
effectId = dis->readByte();
|
||||
}
|
||||
|
||||
void RemoveMobEffectPacket::read(DataInputStream *dis)
|
||||
{
|
||||
entityId = dis->readInt();
|
||||
effectId = dis->readByte();
|
||||
void RemoveMobEffectPacket::write(DataOutputStream* dos) {
|
||||
dos->writeInt(entityId);
|
||||
dos->writeByte(effectId);
|
||||
}
|
||||
|
||||
void RemoveMobEffectPacket::write(DataOutputStream *dos)
|
||||
{
|
||||
dos->writeInt(entityId);
|
||||
dos->writeByte(effectId);
|
||||
void RemoveMobEffectPacket::handle(PacketListener* listener) {
|
||||
listener->handleRemoveMobEffect(shared_from_this());
|
||||
}
|
||||
|
||||
void RemoveMobEffectPacket::handle(PacketListener *listener)
|
||||
{
|
||||
listener->handleRemoveMobEffect(shared_from_this());
|
||||
}
|
||||
|
||||
int RemoveMobEffectPacket::getEstimatedSize()
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
int RemoveMobEffectPacket::getEstimatedSize() { return 5; }
|
||||
Reference in New Issue
Block a user