4jcraft/targets/minecraft/network/packet/PlayerInputPacket.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

37 lines
855 B
C++

#pragma once
#include <memory>
#include "Packet.h"
#include "minecraft/network/packet/Packet.h"
class PlayerInputPacket
: public Packet,
public std::enable_shared_from_this<PlayerInputPacket> {
private:
float xxa;
float yya;
bool isJumpingVar;
bool isSneakingVar;
public:
PlayerInputPacket();
PlayerInputPacket(float xxa, float yya, bool isJumpingVar,
bool isSneakingVar);
virtual void read(DataInputStream* dis);
virtual void write(DataOutputStream* dos);
virtual void handle(PacketListener* listener);
virtual int getEstimatedSize();
float getXxa();
float getYya();
bool isJumping();
bool isSneaking();
public:
static std::shared_ptr<Packet> create() {
return std::make_shared<PlayerInputPacket>();
}
virtual int getId() { return 27; }
};