![]() |
Botcraft 1.21.4
|
#include <Slot.hpp>
Public Member Functions | |
Slot () | |
virtual | ~Slot () override |
bool | SameItem (const Slot &s) const |
bool | IsEmptySlot () const |
![]() | |
virtual | ~NetworkType () |
virtual void | Read (ReadIterator &iter, size_t &length) |
virtual void | Write (WriteContainer &container) const |
virtual Json::Value | Serialize () const |
Private Member Functions | |
DEFINE_CONDITION (HasContent, GetItemCount() > 0) | |
SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (ItemCount, VarInt) | |
SERIALIZED_FIELD (ItemId, Internal::Conditioned< VarInt, &Slot::HasContent, false >) | |
SERIALIZED_FIELD (Components, Internal::Conditioned< Components::DataComponentPatch, &Slot::HasContent, false >) | |
GETTER (ItemCount) | |
SETTER (ItemCount) | |
Private Attributes | |
DECLARE_READ_WRITE_SERIALIZE | |
Additional Inherited Members | |
![]() | |
virtual void | ReadImpl (ReadIterator &iter, size_t &length)=0 |
virtual void | WriteImpl (WriteContainer &container) const =0 |
virtual Json::Value | SerializeImpl () const =0 |
|
inlineoverridevirtual |
|
private |
|
private |
|
inline |
Definition at line 92 of file Slot.hpp.
Referenced by Botcraft::DigImpl(), Botcraft::Utilities::GetDamageCount(), Botcraft::Utilities::GetEnchantmentLvl(), Botcraft::PhysicsManager::InputsToFly(), Botcraft::InventoryManager::PrepareTransaction(), SameItem(), Botcraft::SetItemInHandImpl(), Botcraft::SortInventory(), and Botcraft::TradeImpl().
|
inline |
Definition at line 68 of file Slot.hpp.
References IsEmptySlot().
Referenced by Botcraft::InventoryManager::PrepareTransaction(), and Botcraft::SortInventory().
|
private |
|
private |
|
private |
|
private |