LeviLamina
Loading...
Searching...
No Matches
ItemStackBase Class Reference
Inheritance diagram for ItemStackBase:

Classes

struct  ComparisonOptions

Public Member Functions

LLNDAPI std::string getTypeName () const
LLNDAPI std::string getDescriptionName () const
LLNDAPI bool isEnchanted () const
LLNDAPI bool removeEnchants () const
LLAPI void deserializeComponents (IDataInput &input)
LLAPI bool operator== (ItemStackBase const &other) const
LLNDAPI short getId () const
LLNDAPI short getAuxValue () const
LLAPI void setDamageValue (short newDamage)
void add (int count)
void remove (int count)
virtual void reinit (::Item const &item, int count, int auxValue)
virtual void reinit (::Block const &block, int count)
virtual void reinit (::std::string_view const name, int count, int auxValue)
virtual void setNull (::std::optional<::std::string > reason)
virtual::std::string toString () const
virtual::std::string toDebugString () const
MCAPI ItemStackBase (::RecipeIngredient const &ingredient)
MCAPI ItemStackBase (::ItemStackBase const &rhs)
MCAPI ItemStackBase (::Block const &block, int count=1, ::CompoundTag const *_userData=nullptr)
MCAPI ItemStackBase (::Item const &item, int count=1, int auxValue=0, ::CompoundTag const *_userData=nullptr)
MCAPI ItemStackBase (::std::string_view name, int count=1, int auxValue=0, ::CompoundTag const *_userData=nullptr)
MCAPI void _addCustomUserDataCommon (::std::unique_ptr<::CompoundTag > &&tag)
MCAPI void _checkForItemWorldCompatibility ()
MCAPI void _cloneComponents (::ItemStackBase const &other)
MCAPI::std::string _getHoverFormattingPrefix () const
MCAPI bool _isInstance (::std::string_view itemName) const
MCAPI void _loadItem (::CompoundTag const &compoundTag)
MCAPI void _setChargedItem (::ItemInstance const &item)
MCAPI bool _setItem (int id, bool doRemap)
MCAPI void _updateCompareHashes ()
MCAPI bool addComponents (::Json::Value const &root, ::std::string &errorMsg)
MCAPI void addCustomUserData (::ContainerComponent const &containerComponent)
MCAPI void addCustomUserData (::BlockActor &blockEntity, ::BlockSource &region)
MCAPI void clearCustomLore ()
MCAPI::ItemEnchants constructItemEnchantsFromUserData () const
MCAPI::SharedTypes::Legacy::ArmorSlot getArmorSlot () const
MCAPI int getBaseRepairCost () const
MCAPI ::WeakPtr<::BlockType const > const & getBlockType () const
MCAPI::mce::Color getColor () const
MCAPI ::std::vector<::std::string > getCustomLore () const
MCAPI::std::string getCustomName () const
MCAPI short getDamageValue () const
MCAPI::std::string getDescriptionId () const
MCAPI::ItemDescriptor getDescriptor () const
MCAPI ::std::unique_ptr<::DynamicPropertiesgetDynamicProperties () const
MCAPI ::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > getDynamicProperty (::std::string const &key, ::std::string const &collectionName) const
MCAPI::HashedString const & getFullNameHash () const
MCAPI int getIdAux () const
MCAPI uchar getMaxStackSize () const
MCAPI::std::string getName () const
MCAPI float getPickupPopPercentage () const
MCAPI::HashedString const & getRawNameHash () const
MCAPI::std::string getRawNameId () const
MCAPI::Bedrock::Safety::RedactableString getRedactedCustomName () const
MCAPI::Bedrock::Safety::RedactableString getRedactedHoverName () const
MCAPI::Bedrock::Safety::RedactableString getRedactedName () const
MCAPI bool hasChargedItem () const
MCAPI bool hasSameAuxValue (::ItemStackBase const &other) const
MCAPI bool hasSameUserData (::ItemStackBase const &other) const
MCAPI bool hasTag (::ItemTag const &string) const
MCAPI bool hurtAndBreak (int deltaDamage, ::Actor *owner)
MCAPI void init (int id, int count_, int aux_, bool doRemap)
MCAPI void init (::Item const &item, int count, int auxValue, ::CompoundTag const *userData, bool doRemap)
MCAPI bool isArmorItem () const
MCAPI bool isDamageableItem () const
MCAPI bool isDamaged () const
MCAPI bool isEnchantingBook () const
MCAPI bool isFullStack () const
MCAPI bool isHorseArmorItem () const
MCAPI bool isHumanoidWearableBlockItem () const
MCAPI bool isInstance (::HashedString const &itemName, bool useItemLookup) const
MCAPI bool isNull () const
MCAPI bool isOneOfBlockInstances (::std::vector<::std::reference_wrapper<::HashedString const > > const &blockTypeIds) const
MCAPI bool isOneOfInstances (::std::initializer_list<::std::reference_wrapper<::HashedString const > > items, bool useItemLookup) const
MCAPI bool isPotionItem () const
MCAPI bool isStackable () const
MCAPI bool isStackable (::ItemStackBase const &other) const
MCAPI bool matchesEitherWearableCase (::CompoundTag const *userData) const
MCAPI bool matchesItem (::ItemStackBase const &other) const
MCAPI operator bool () const
MCAPI::ItemStackBase & operator= (::ItemStackBase const &rhs)
MCAPI void resetHoverName ()
MCAPI bool sameItem (::ItemStackBase const &other, ::ItemStackBase::ComparisonOptions const &options) const
MCAPI ::std::unique_ptr<::CompoundTagsave (::SaveContext const &saveContext) const
MCAPI void saveEnchantsToUserData (::ItemEnchants const &enchant)
MCAPI void serializeComponents (::IDataOutput &output) const
MCAPI void set (int inCount)
MCAPI void setChargedItem (::ItemInstance const &instance, bool isSwapping)
MCAPI void setCustomLore (::std::vector<::std::string > const &lore)
MCAPI void setCustomName (::Bedrock::Safety::RedactableString const &name)
MCAPI void setDynamicProperty (::std::string const &key, ::std::variant< double, float, bool, ::std::string, ::Vec3 > const &value, ::std::string const &collectionName)
MCAPI void setJustBrewed (bool justBrewed)
MCAPI void setPickupTime ()
MCAPI void setRepairCost (int cost)
MCAPI void setUnbreakable (bool isUnbreakable)
MCAPI void setUserData (::std::unique_ptr<::CompoundTag > tag)
MCAPI bool shouldVanish () const
MCAPI void startCooldown (::Player &player, ::SharedTypes::ItemCooldownType type) const
MCAPI void * $ctor (::RecipeIngredient const &ingredient)
MCAPI void * $ctor (::ItemStackBase const &rhs)
MCAPI void * $ctor (::Block const &block, int count, ::CompoundTag const *_userData)
MCAPI void * $ctor (::Item const &item, int count, int auxValue, ::CompoundTag const *_userData)
MCAPI void * $ctor (::std::string_view name, int count, int auxValue, ::CompoundTag const *_userData)
MCAPI void $dtor ()
MCFOLD void $reinit (::Item const &item, int count, int auxValue)
MCFOLD void $reinit (::Block const &block, int count)
MCFOLD void $reinit (::std::string_view const name, int count, int auxValue)
MCAPI void $setNull (::std::optional<::std::string > reason)
MCAPI::std::string $toString () const
MCAPI::std::string $toDebugString () const

Static Public Member Functions

static MCAPI bool _loadBlocksForCanPlaceOnCanDestroy (::std::vector<::BlockType const * > &blockList, ::std::string const &blockName)
static MCAPI ::ItemStackBase::ComparisonOptions const & COMPARISONOPTIONS_AUXANDRELEVANTUSERDATA ()
static MCAPI ::ItemStackBase::ComparisonOptions const & COMPARISONOPTIONS_RELEVANTUSERDATA ()
static MCAPI ::std::string const & TAG_CAN_DESTROY ()
static MCAPI ::std::string const & TAG_CAN_PLACE_ON ()
static MCAPI ::std::string const & TAG_CHARGED_ITEM ()
static MCAPI ::std::string const & TAG_DISPLAY ()
static MCAPI ::std::string const & TAG_DISPLAY_FILTERED_NAME ()
static MCAPI ::std::string const & TAG_DISPLAY_NAME ()
static MCAPI ::std::string const & TAG_ENCHANTS ()
static MCAPI ::std::string const & TAG_LORE ()
static MCAPI ::std::string const & TAG_REPAIR_COST ()
static MCAPI ::std::string const & TAG_STORE_CAN_DESTROY ()
static MCAPI ::std::string const & TAG_STORE_CAN_PLACE_ON ()
static MCAPI ::std::string const & TAG_UNBREAKABLE ()
static MCAPI void ** $vftable ()

Public Attributes

::WeakPtr<::ItemmItem
::std::unique_ptr<::CompoundTagmUserData
::Block const * mBlock
short mAuxValue
uchar mCount
bool mValid_DeprecatedSeeComment
bool mShowPickUp
bool mWasPickedUp
::std::chrono::steady_clock::time_point mPickupTime
::std::vector<::BlockType const * > mCanPlaceOn
uint64 mCanPlaceOnHash
::std::vector<::BlockType const * > mCanDestroy
uint64 mCanDestroyHash
::Tick mBlockingTick
::std::unique_ptr<::ItemInstancemChargedItem

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