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

Public Types

enum class  EntryType : int { LootItem = 0 , EmptyLootItem = 1 , LootTableEntry = 2 , LootTableReference = 3 }

Public Member Functions

virtual bool _createItem (::std::vector<::ItemStack > &output, ::Random &random, ::LootTableContext &context) const
virtual::LootPoolEntry::EntryType getEntryType () const
MCAPI bool $_createItem (::std::vector<::ItemStack > &output, ::Random &random, ::LootTableContext &context) const
MCFOLD::LootPoolEntry::EntryType $getEntryType () const
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::std::unique_ptr<::LootPoolEntrydeserialize (::Json::Value const &entry, int weight, int quality, ::std::vector<::std::unique_ptr<::LootItemCondition > > &conditions, bool usingUpcomingCreatorFeaturesExperiment)
static MCAPI void ** $vftable ()
static MCAPI ::std::unique_ptr<::LootPoolEntrydeserialize (::Json::Value const &entryJson, bool usingUpcomingCreatorFeaturesExperiment)

Public Attributes

::ll::TypedStorage< 8, 8, ::Item const * > mItem
::ll::TypedStorage< 4, 4, int > mAuxValue
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::LootItemFunction > > > mFunctions
::ll::TypedStorage< 8, 32, ::std::string > mOriginalItemName
::ll::TypedStorage< 4, 4, int > mWeight
::ll::TypedStorage< 4, 4, int > mQuality
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::LootItemCondition > > > mConditions
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::LootPoolEntry > > mSubTable

Member Function Documentation

◆ _createItem()

virtual bool LootItem::_createItem ( ::std::vector<::ItemStack > & output,
::Random & random,
::LootTableContext & context ) const
virtual

Implements LootPoolEntry.

◆ getEntryType()

virtual::LootPoolEntry::EntryType LootItem::getEntryType ( ) const
virtual

Implements LootPoolEntry.

◆ $vftable()

MCAPI void ** LootItem::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file:
  • src/mc/world/level/storage/loot/entries/LootItem.h