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

Public Types

enum class  ApplyForComplexAliasBlockResult : uchar { NotComplexAliasBlock = 0 , FailedToRemapComplexAliasBlock = 1 , Success = 2 }
 
enum class  ApplyForItemResult : uchar { AsNewItem = 0 , SetAuxValue = 1 }
 

Public Member Functions

SetItemDataFunctionoperator= (SetItemDataFunction const &)
 
 SetItemDataFunction (SetItemDataFunction const &)
 
virtual void apply (::ItemStack &item, ::Random &random, ::LootTableContext &context)
 
virtual void apply (::ItemInstance &item, ::Random &random, ::LootTableContext &context)
 
MCAPI::SetItemDataFunction::ApplyForComplexAliasBlockResult _applyImplForComplexAliasBlock (::Item const *&inOutItemDef, ::std::string const &originalItemName, ::Random &random, int &outResultAux)
 
MCAPI::SetItemDataFunction::ApplyForItemResult _applyImplForItem (::std::string const &originalItemName, ::std::string const &itemRawNameId, ::Random &random, int &outAux, ::WeakPtr<::Item > &outItem)
 
MCAPI void _applyImplForNormalBlock (::Block const *&inOutBlock, ::Random &random)
 
MCAPI void $apply (::ItemStack &item, ::Random &random, ::LootTableContext &context)
 
MCAPI void $apply (::ItemInstance &item, ::Random &random, ::LootTableContext &context)
 
virtual int apply (::ItemStack &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
 
virtual int apply (::ItemInstance &item, ::Random &random, ::Trade const &trade, ::LootTableContext &context)
 
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, ::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::UntypedStorage< 4, 8 > mUnk66cbff
 
::ll::UntypedStorage< 8, 24 > mUnkd6cdfe
 

Member Function Documentation

◆ apply() [1/2]

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

Implements LootItemFunction.

◆ apply() [2/2]

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

Implements LootItemFunction.

◆ _applyImplForComplexAliasBlock()

MCAPI::SetItemDataFunction::ApplyForComplexAliasBlockResult SetItemDataFunction::_applyImplForComplexAliasBlock ( ::Item const *& inOutItemDef,
::std::string const & originalItemName,
::Random & random,
int & outResultAux )
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.

◆ _applyImplForItem()

MCAPI::SetItemDataFunction::ApplyForItemResult SetItemDataFunction::_applyImplForItem ( ::std::string const & originalItemName,
::std::string const & itemRawNameId,
::Random & random,
int & outAux,
::WeakPtr<::Item > & outItem )
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.

◆ _applyImplForNormalBlock()

MCAPI void SetItemDataFunction::_applyImplForNormalBlock ( ::Block const *& inOutBlock,
::Random & random )
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.

◆ deserialize() [1/2]

static MCAPI ::std::unique_ptr<::LootItemFunction > SetItemDataFunction::deserialize ( ::Json::Value object,
::std::vector<::std::unique_ptr<::LootItemCondition > > & predicates )
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.

◆ $apply() [1/4]

MCAPI void SetItemDataFunction::$apply ( ::ItemStack & item,
::Random & random,
::LootTableContext & context )
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.

◆ $apply() [2/4]

MCAPI void SetItemDataFunction::$apply ( ::ItemInstance & item,
::Random & random,
::LootTableContext & context )
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.

◆ $vftable()

static MCAPI void ** SetItemDataFunction::$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.

◆ deserialize() [2/2]

static MCAPI ::std::unique_ptr<::LootItemFunction > LootItemFunction::deserialize ( ::Json::Value object,
bool usingUpcomingCreatorFeaturesExperiment )
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.

◆ mLootingFunctions()

static MCAPI ::std::unordered_map< ::HashedString, ::std::function<::std::unique_ptr< ::LootItemFunction >(::Json::Value &, ::std::vector<::std::unique_ptr<::LootItemCondition > > &)> > const & LootItemFunction::mLootingFunctions ( )
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.

◆ $dtor()

MCAPI void LootItemFunction::$dtor ( )
inherited
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.

◆ $apply() [3/4]

MCAPI int LootItemFunction::$apply ( ::ItemStack & item,
::Random & random,
::Trade const & trade,
::LootTableContext & context )
inherited
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.

◆ $apply() [4/4]

MCAPI int LootItemFunction::$apply ( ::ItemInstance & item,
::Random & random,
::Trade const & trade,
::LootTableContext & context )
inherited
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: