Skip to content
LeviMC
English
AutoLightDark
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
MCAPI::LootPoolEntry::EntryType $getEntryType () const

Static Public Member Functions

static MCAPI ::SemVersionConstant const & START_VERSIONING_VERSION ()

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
::ll::TypedStorage< 8, 24, ::SemVersion > mJsonVersion

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.

◆ $_createItem()

MCAPI bool LootItem::$_createItem ( ::std::vector<::ItemStack > & output,
::Random & random,
::LootTableContext & context ) const
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.

◆ $getEntryType()

MCAPI::LootPoolEntry::EntryType LootItem::$getEntryType ( ) const
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.

◆ START_VERSIONING_VERSION()

MCAPI ::SemVersionConstant const & LootPoolEntry::START_VERSIONING_VERSION ( )
staticinherited
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