mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-04 23:04:17 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,50 +2,35 @@
|
||||
|
||||
#include "RotateHeadPacket.h"
|
||||
|
||||
RotateHeadPacket::RotateHeadPacket()
|
||||
{
|
||||
RotateHeadPacket::RotateHeadPacket() {}
|
||||
|
||||
RotateHeadPacket::RotateHeadPacket(int id, char yHeadRot) {
|
||||
this->id = id;
|
||||
this->yHeadRot = yHeadRot;
|
||||
}
|
||||
|
||||
RotateHeadPacket::RotateHeadPacket(int id, char yHeadRot)
|
||||
{
|
||||
this->id = id;
|
||||
this->yHeadRot = yHeadRot;
|
||||
void RotateHeadPacket::read(DataInputStream* dis) {
|
||||
id = dis->readInt();
|
||||
yHeadRot = dis->readByte();
|
||||
}
|
||||
|
||||
void RotateHeadPacket::read(DataInputStream *dis)
|
||||
{
|
||||
id = dis->readInt();
|
||||
yHeadRot = dis->readByte();
|
||||
void RotateHeadPacket::write(DataOutputStream* dos) {
|
||||
dos->writeInt(id);
|
||||
dos->writeByte(yHeadRot);
|
||||
}
|
||||
|
||||
void RotateHeadPacket::write(DataOutputStream *dos)
|
||||
{
|
||||
dos->writeInt(id);
|
||||
dos->writeByte(yHeadRot);
|
||||
void RotateHeadPacket::handle(PacketListener* listener) {
|
||||
listener->handleRotateMob(shared_from_this());
|
||||
}
|
||||
|
||||
void RotateHeadPacket::handle(PacketListener *listener)
|
||||
{
|
||||
listener->handleRotateMob(shared_from_this());
|
||||
int RotateHeadPacket::getEstimatedSize() { return 5; }
|
||||
|
||||
bool RotateHeadPacket::canBeInvalidated() { return true; }
|
||||
|
||||
bool RotateHeadPacket::isInvalidatedBy(std::shared_ptr<Packet> packet) {
|
||||
std::shared_ptr<RotateHeadPacket> target =
|
||||
std::dynamic_pointer_cast<RotateHeadPacket>(packet);
|
||||
return target->id == id;
|
||||
}
|
||||
|
||||
int RotateHeadPacket::getEstimatedSize()
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
|
||||
bool RotateHeadPacket::canBeInvalidated()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RotateHeadPacket::isInvalidatedBy(std::shared_ptr<Packet> packet)
|
||||
{
|
||||
std::shared_ptr<RotateHeadPacket> target = std::dynamic_pointer_cast<RotateHeadPacket>(packet);
|
||||
return target->id == id;
|
||||
}
|
||||
|
||||
bool RotateHeadPacket::isAync()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
bool RotateHeadPacket::isAync() { return true; }
|
||||
Reference in New Issue
Block a user