LeviLamina
Loading...
Searching...
No Matches
LootItemFunction Class Referenceabstract
Inheritance diagram for LootItemFunction:

Public Types

enum class  FunctionType : int {
  SetItemCount = 0 , SetItemData = 1 , SetItemDamage = 2 , LootingEnchant = 3 ,
  EnchantWithLevels = 4 , EnchantBookForTrading = 5 , EnchantRandomly = 6 , SmeltItem = 7 ,
  SetDataFromColorIndex = 8 , EnchantRandomEquipment = 9 , RandomAuxValue = 10 , RandomBlockState = 11 ,
  RandomDye = 12 , ExplorationMap = 13 , SetBannerDetails = 14 , ExplosionDecay = 15 ,
  SetItemName = 16 , SetItemLore = 17 , SpecificEnchant = 18 , FillContainer = 19 ,
  SetSpawnEgg = 20 , SetBookContents = 21 , SetStewEffect = 22 , SetOminousBottle = 23 ,
  SetArmorTrim = 24 , SetPotion = 25 , Count = 26
}

Public Member Functions

virtual void apply (::ItemStack &, ::Random &, ::LootTableContext &)=0
virtual int apply (::ItemStack &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
virtual void apply (::ItemInstance &, ::Random &, ::LootTableContext &)=0
virtual int apply (::ItemInstance &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
virtual::LootItemFunction::FunctionType getFunctionType () const =0
MCAPI void $dtor ()
MCAPI int $apply (::ItemStack &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
MCAPI int $apply (::ItemInstance &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)

Static Public Member Functions

static MCAPI ::std::unique_ptr<::LootItemFunctiondeserialize (::Json::Value object, bool usingUpcomingCreatorFeaturesExperiment)
static MCAPI ::std::unordered_map< ::HashedString, ::std::function<::std::unique_ptr< ::LootItemFunction >(::Json::Value &, ::std::vector<::std::unique_ptr<::LootItemCondition > > &)> > const & mLootingFunctions ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::LootItemCondition > > > mPredicates

Member Function Documentation

◆ $vftable()

MCAPI void ** LootItemFunction::$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: