Botcraft 26.2
Loading...
Searching...
No Matches
ProtocolCraft::UntrustedItemStack Class Reference

#include <Slot.hpp>

Inheritance diagram for ProtocolCraft::UntrustedItemStack:
ProtocolCraft::NetworkType

Public Member Functions

 UntrustedItemStack ()=default
 
 UntrustedItemStack (const Slot &s)
 
 DEFINE_CONDITION (HasContent, GetItemCount() > 0)
 
 SERIALIZED_FIELD (ItemCount, VarInt)
 
 SERIALIZED_FIELD (ItemId, Internal::Conditioned< VarInt, &UntrustedItemStack::HasContent, false >)
 
 SERIALIZED_FIELD (Components, Internal::Conditioned< Components::LengthPrefixedDataComponentPatch, &UntrustedItemStack::HasContent, false >)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 

Public Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

- 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 145 of file Slot.hpp.

Constructor & Destructor Documentation

◆ UntrustedItemStack() [1/2]

ProtocolCraft::UntrustedItemStack::UntrustedItemStack ( )
default

◆ UntrustedItemStack() [2/2]

ProtocolCraft::UntrustedItemStack::UntrustedItemStack ( const Slot s)
inline

Definition at line 150 of file Slot.hpp.

Member Function Documentation

◆ DEFINE_CONDITION()

ProtocolCraft::UntrustedItemStack::DEFINE_CONDITION ( HasContent  ,
GetItemCount()  ,
 
)

◆ SERIALIZED_FIELD() [1/3]

ProtocolCraft::UntrustedItemStack::SERIALIZED_FIELD ( Components  ,
Internal::Conditioned< Components::LengthPrefixedDataComponentPatch, &UntrustedItemStack::HasContent, false >   
)

◆ SERIALIZED_FIELD() [2/3]

ProtocolCraft::UntrustedItemStack::SERIALIZED_FIELD ( ItemCount  ,
VarInt   
)

◆ SERIALIZED_FIELD() [3/3]

ProtocolCraft::UntrustedItemStack::SERIALIZED_FIELD ( ItemId  ,
Internal::Conditioned< VarInt, &UntrustedItemStack::HasContent, false >   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::UntrustedItemStack::DECLARE_READ_WRITE_SERIALIZE

Definition at line 162 of file Slot.hpp.


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