File ItemStackBase.hpp

class ItemStackBase

Subclassed by ItemInstance, ItemStack

Public Functions

~ItemStackBase()
void reinit(const Item &item, int count, int auxValue)
void reinit(const BlockLegacy &block, int count)
void reinit(std::string_view name, int count, int auxValue)
void setNull(std::optional<std::string> reason)
std::string toString() const
std::string toDebugString() const
ItemStackBase()
ItemStackBase(const ItemStackBase&)
ItemStackBase &operator=(const ItemStackBase&)
void _loadItem(const CompoundTag*)

Public Members

uintptr_t **vtable
WeakPtr<Item> mItem
CompoundTag *mUserData
const Block *mBlock
unsigned short mAuxValue
byte mCount
bool mValid
std::chrono::steady_clock::time_point mPickupTime
bool mShowPickup
std::vector<const BlockLegacy*> mCanPlaceOn
size_t mCanPlaceOnHash
std::vector<const BlockLegacy*> mCanDestroy
size_t mCanDestroyHash
Tick mBlockingTick
std::unique_ptr<ItemInstance> mChargedItem