Botcraft 1.21.4
Loading...
Searching...
No Matches
ProtocolCraft::ServerboundMovePlayerPacketPosRot Class Reference

#include <ServerboundMovePlayerPacketPosRot.hpp>

Inheritance diagram for ProtocolCraft::ServerboundMovePlayerPacketPosRot:
ProtocolCraft::BaseMessage< ServerboundMovePlayerPacketPosRot > ProtocolCraft::Message ProtocolCraft::NetworkType

Public Member Functions

 SERIALIZED_FIELD (X, double)
 
 SERIALIZED_FIELD (Y, double)
 
 SERIALIZED_FIELD (Z, double)
 
 SERIALIZED_FIELD (YRot, float)
 
 SERIALIZED_FIELD (XRot, float)
 
 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (Flags, std::bitset< 2 >)
 
bool GetOnGround () const
 
bool GetHorizontalCollision () const
 
THISSetOnGround (const bool b)
 
THISSetHorizontalCollision (const bool b)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ServerboundMovePlayerPacketPosRot >
virtual ~BaseMessage () override
 
virtual int GetId () const override
 
virtual std::string_view GetName () const override
 
- Public Member Functions inherited from ProtocolCraft::Message
virtual ~Message ()
 
virtual void Write (WriteContainer &container) const override
 
void Dispatch (Handler *handler)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual Json::Value Serialize () const
 

Public Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Static Public Attributes

static constexpr std::string_view packet_name = "Move Player PosRot"
 

Additional Inherited Members

- Protected Types inherited from ProtocolCraft::BaseMessage< ServerboundMovePlayerPacketPosRot >
using THIS = ServerboundMovePlayerPacketPosRot
 
- Protected Member Functions inherited from ProtocolCraft::BaseMessage< ServerboundMovePlayerPacketPosRot >
virtual void DispatchImpl (Handler *handler) override
 
- Protected Member Functions inherited from ProtocolCraft::NetworkType
virtual void ReadImpl (ReadIterator &iter, size_t &length)=0
 
virtual void WriteImpl (WriteContainer &container) const =0
 
virtual Json::Value SerializeImpl () const =0
 

Detailed Description

Definition at line 7 of file ServerboundMovePlayerPacketPosRot.hpp.

Member Function Documentation

◆ GetHorizontalCollision()

bool ProtocolCraft::ServerboundMovePlayerPacketPosRot::GetHorizontalCollision ( ) const
inline

Definition at line 24 of file ServerboundMovePlayerPacketPosRot.hpp.

◆ GetOnGround()

bool ProtocolCraft::ServerboundMovePlayerPacketPosRot::GetOnGround ( ) const
inline

Definition at line 23 of file ServerboundMovePlayerPacketPosRot.hpp.

◆ SERIALIZED_FIELD() [1/5]

ProtocolCraft::ServerboundMovePlayerPacketPosRot::SERIALIZED_FIELD ( ,
double   
)

◆ SERIALIZED_FIELD() [2/5]

ProtocolCraft::ServerboundMovePlayerPacketPosRot::SERIALIZED_FIELD ( XRot  ,
float   
)

◆ SERIALIZED_FIELD() [3/5]

ProtocolCraft::ServerboundMovePlayerPacketPosRot::SERIALIZED_FIELD ( ,
double   
)

◆ SERIALIZED_FIELD() [4/5]

ProtocolCraft::ServerboundMovePlayerPacketPosRot::SERIALIZED_FIELD ( YRot  ,
float   
)

◆ SERIALIZED_FIELD() [5/5]

ProtocolCraft::ServerboundMovePlayerPacketPosRot::SERIALIZED_FIELD ( ,
double   
)

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER()

ProtocolCraft::ServerboundMovePlayerPacketPosRot::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( Flags  ,
std::bitset< 2 >   
)

◆ SetHorizontalCollision()

THIS & ProtocolCraft::ServerboundMovePlayerPacketPosRot::SetHorizontalCollision ( const bool  b)
inline

Definition at line 26 of file ServerboundMovePlayerPacketPosRot.hpp.

◆ SetOnGround()

THIS & ProtocolCraft::ServerboundMovePlayerPacketPosRot::SetOnGround ( const bool  b)
inline

Definition at line 25 of file ServerboundMovePlayerPacketPosRot.hpp.

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ServerboundMovePlayerPacketPosRot::DECLARE_READ_WRITE_SERIALIZE

Definition at line 29 of file ServerboundMovePlayerPacketPosRot.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ServerboundMovePlayerPacketPosRot::packet_name = "Move Player PosRot"
staticconstexpr

Definition at line 10 of file ServerboundMovePlayerPacketPosRot.hpp.


The documentation for this class was generated from the following file: