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

#include <ServerboundPlayerInputPacket.hpp>

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

Public Member Functions

 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (Flags, std::bitset< 7 >)
 
bool GetForward () const
 
bool GetBackward () const
 
bool GetLeft () const
 
bool GetRight () const
 
bool GetJump () const
 
bool GetShift () const
 
bool GetSprint () const
 
THISSetForward (const bool b)
 
THISSetBackward (const bool b)
 
THISSetLeft (const bool b)
 
THISSetRight (const bool b)
 
THISSetJump (const bool b)
 
THISSetShift (const bool b)
 
THISSetSprint (const bool b)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ServerboundPlayerInputPacket >
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 = "Player Input"
 

Additional Inherited Members

- Protected Types inherited from ProtocolCraft::BaseMessage< ServerboundPlayerInputPacket >
using THIS = ServerboundPlayerInputPacket
 
- Protected Member Functions inherited from ProtocolCraft::BaseMessage< ServerboundPlayerInputPacket >
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 ServerboundPlayerInputPacket.hpp.

Member Function Documentation

◆ GetBackward()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetBackward ( ) const
inline

Definition at line 21 of file ServerboundPlayerInputPacket.hpp.

◆ GetForward()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetForward ( ) const
inline

Definition at line 20 of file ServerboundPlayerInputPacket.hpp.

◆ GetJump()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetJump ( ) const
inline

Definition at line 24 of file ServerboundPlayerInputPacket.hpp.

◆ GetLeft()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetLeft ( ) const
inline

Definition at line 22 of file ServerboundPlayerInputPacket.hpp.

◆ GetRight()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetRight ( ) const
inline

Definition at line 23 of file ServerboundPlayerInputPacket.hpp.

◆ GetShift()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetShift ( ) const
inline

Definition at line 25 of file ServerboundPlayerInputPacket.hpp.

◆ GetSprint()

bool ProtocolCraft::ServerboundPlayerInputPacket::GetSprint ( ) const
inline

Definition at line 26 of file ServerboundPlayerInputPacket.hpp.

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER()

ProtocolCraft::ServerboundPlayerInputPacket::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( Flags  ,
std::bitset< 7 >   
)

◆ SetBackward()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetBackward ( const bool  b)
inline

Definition at line 28 of file ServerboundPlayerInputPacket.hpp.

◆ SetForward()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetForward ( const bool  b)
inline

Definition at line 27 of file ServerboundPlayerInputPacket.hpp.

◆ SetJump()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetJump ( const bool  b)
inline

Definition at line 31 of file ServerboundPlayerInputPacket.hpp.

◆ SetLeft()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetLeft ( const bool  b)
inline

Definition at line 29 of file ServerboundPlayerInputPacket.hpp.

◆ SetRight()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetRight ( const bool  b)
inline

Definition at line 30 of file ServerboundPlayerInputPacket.hpp.

◆ SetShift()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetShift ( const bool  b)
inline

Definition at line 32 of file ServerboundPlayerInputPacket.hpp.

◆ SetSprint()

THIS & ProtocolCraft::ServerboundPlayerInputPacket::SetSprint ( const bool  b)
inline

Definition at line 33 of file ServerboundPlayerInputPacket.hpp.

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ServerboundPlayerInputPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 36 of file ServerboundPlayerInputPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ServerboundPlayerInputPacket::packet_name = "Player Input"
staticconstexpr

Definition at line 10 of file ServerboundPlayerInputPacket.hpp.


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