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

Classes

struct  EnchantmentOption

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 &item, ::Random &random, ::LootTableContext &)
virtual int apply (::ItemStack &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
virtual void apply (::ItemInstance &item, ::Random &random, ::LootTableContext &)
virtual int apply (::ItemInstance &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
virtual::LootItemFunction::FunctionType getFunctionType () const
MCAPI::EnchantmentInstance _getRandomEnchantInstance (::Random &random) const
MCAPI ::std::optional<::EnchantmentInstance_trySelectEnchantmentFromOptions (::Random &random) const
MCFOLD void $apply (::ItemStack &item, ::Random &random, ::LootTableContext &)
MCFOLD int $apply (::ItemStack &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
MCFOLD void $apply (::ItemInstance &item, ::Random &random, ::LootTableContext &)
MCFOLD int $apply (::ItemInstance &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
MCFOLD::LootItemFunction::FunctionType $getFunctionType () const
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::std::optional<::EnchantBookForTradingFunction::EnchantmentOption_parseEnchantmentOption (::Json::Value const &enchantOptionData)
static MCAPI ::std::unique_ptr<::EnchantBookForTradingFunctiondeserialize (::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates)
static MCAPI void ** $vftable ()
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 ()

Public Attributes

::ll::TypedStorage< 4, 4, int > mBaseCost
::ll::TypedStorage< 4, 4, int > mRandomBaseCost
::ll::TypedStorage< 4, 4, int > mRandomPerLevelCost
::ll::TypedStorage< 4, 4, int > mPerLevelCost
::ll::TypedStorage< 8, 24, ::std::vector<::EnchantBookForTradingFunction::EnchantmentOption > > mEnchantmentOptions
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::LootItemCondition > > > mPredicates

Member Function Documentation

◆ apply() [1/4]

virtual void EnchantBookForTradingFunction::apply ( ::ItemStack & item,
::Random & random,
::LootTableContext &  )
virtual

Implements LootItemFunction.

◆ apply() [2/4]

virtual int EnchantBookForTradingFunction::apply ( ::ItemStack & item,
::Random & random,
::Trade const & trade,
::LootTableContext & context )
virtual

Reimplemented from LootItemFunction.

◆ apply() [3/4]

virtual void EnchantBookForTradingFunction::apply ( ::ItemInstance & item,
::Random & random,
::LootTableContext &  )
virtual

Implements LootItemFunction.

◆ apply() [4/4]

virtual int EnchantBookForTradingFunction::apply ( ::ItemInstance & item,
::Random & random,
::Trade const & trade,
::LootTableContext & context )
virtual

Reimplemented from LootItemFunction.

◆ getFunctionType()

virtual::LootItemFunction::FunctionType EnchantBookForTradingFunction::getFunctionType ( ) const
virtual

Implements LootItemFunction.

◆ $vftable()

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