mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-26 01:37:08 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -4,38 +4,30 @@
|
||||
#include "PacketListener.h"
|
||||
#include "EntityEventPacket.h"
|
||||
|
||||
|
||||
|
||||
EntityEventPacket::EntityEventPacket()
|
||||
{
|
||||
entityId = 0;
|
||||
eventId = (uint8_t)0;
|
||||
EntityEventPacket::EntityEventPacket() {
|
||||
entityId = 0;
|
||||
eventId = (uint8_t)0;
|
||||
}
|
||||
|
||||
EntityEventPacket::EntityEventPacket(int entityId, uint8_t eventId)
|
||||
{
|
||||
this->entityId = entityId;
|
||||
this->eventId = eventId;
|
||||
EntityEventPacket::EntityEventPacket(int entityId, uint8_t eventId) {
|
||||
this->entityId = entityId;
|
||||
this->eventId = eventId;
|
||||
}
|
||||
|
||||
void EntityEventPacket::read(DataInputStream *dis) //throws IOException
|
||||
void EntityEventPacket::read(DataInputStream* dis) // throws IOException
|
||||
{
|
||||
entityId = dis->readInt();
|
||||
eventId = dis->readByte();
|
||||
entityId = dis->readInt();
|
||||
eventId = dis->readByte();
|
||||
}
|
||||
|
||||
void EntityEventPacket::write(DataOutputStream *dos) //throws IOException
|
||||
void EntityEventPacket::write(DataOutputStream* dos) // throws IOException
|
||||
{
|
||||
dos->writeInt(entityId);
|
||||
dos->writeByte(eventId);
|
||||
dos->writeInt(entityId);
|
||||
dos->writeByte(eventId);
|
||||
}
|
||||
|
||||
void EntityEventPacket::handle(PacketListener *listener)
|
||||
{
|
||||
listener->handleEntityEvent(shared_from_this());
|
||||
void EntityEventPacket::handle(PacketListener* listener) {
|
||||
listener->handleEntityEvent(shared_from_this());
|
||||
}
|
||||
|
||||
int EntityEventPacket::getEstimatedSize()
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
int EntityEventPacket::getEstimatedSize() { return 5; }
|
||||
|
||||
Reference in New Issue
Block a user