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

#include <ClientboundMapItemDataPacket.hpp>

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

Public Member Functions

 DEFINE_CONDITION (HasWidth, GetWidth() > 0)
 
 SERIALIZED_FIELD (MapId, VarInt)
 
 SERIALIZED_FIELD (Scale, char)
 
 SERIALIZED_FIELD (Locked, bool)
 
 SERIALIZED_FIELD (Decorations, std::optional< std::vector< MapDecoration > >)
 
 SERIALIZED_FIELD (Width, unsigned char)
 
 SERIALIZED_FIELD (Height, Internal::Conditioned< unsigned char, &THIS::HasWidth >)
 
 SERIALIZED_FIELD (StartX, Internal::Conditioned< unsigned char, &THIS::HasWidth >)
 
 SERIALIZED_FIELD (StartZ, Internal::Conditioned< unsigned char, &THIS::HasWidth >)
 
 SERIALIZED_FIELD (MapColors, Internal::Conditioned< std::vector< unsigned char >, &THIS::HasWidth >)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundMapItemDataPacket >
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 = "Map Item Data"
 

Additional Inherited Members

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

Member Function Documentation

◆ DEFINE_CONDITION()

ProtocolCraft::ClientboundMapItemDataPacket::DEFINE_CONDITION ( HasWidth  ,
GetWidth()  ,
 
)

◆ SERIALIZED_FIELD() [1/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( Decorations  ,
std::optional< std::vector< MapDecoration > >   
)

◆ SERIALIZED_FIELD() [2/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( Height  ,
Internal::Conditioned< unsigned char, &THIS::HasWidth >   
)

◆ SERIALIZED_FIELD() [3/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( Locked  ,
bool   
)

◆ SERIALIZED_FIELD() [4/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( MapColors  ,
Internal::Conditioned< std::vector< unsigned char >, &THIS::HasWidth >   
)

◆ SERIALIZED_FIELD() [5/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( MapId  ,
VarInt   
)

◆ SERIALIZED_FIELD() [6/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( Scale  ,
char   
)

◆ SERIALIZED_FIELD() [7/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( StartX  ,
Internal::Conditioned< unsigned char, &THIS::HasWidth >   
)

◆ SERIALIZED_FIELD() [8/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( StartZ  ,
Internal::Conditioned< unsigned char, &THIS::HasWidth >   
)

◆ SERIALIZED_FIELD() [9/9]

ProtocolCraft::ClientboundMapItemDataPacket::SERIALIZED_FIELD ( Width  ,
unsigned char   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundMapItemDataPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 33 of file ClientboundMapItemDataPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundMapItemDataPacket::packet_name = "Map Item Data"
staticconstexpr

Definition at line 11 of file ClientboundMapItemDataPacket.hpp.


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