Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptItemStack Class Reference

Public Member Functions

MCAPI ScriptItemStack (::Scripting::WeakLifetimeScope &scope, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > const &itemTypeHandle, int amount, int data)
MCAPI ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError > _validateDynamicProperty (::std::string const &key, ::std::variant< double, float, bool, ::std::string, ::Vec3 > const &value) const
MCAPI ::std::vector<::std::string > getCanDestroy () const
MCAPI ::std::vector<::std::string > getCanPlaceOn () const
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent > > getComponent (::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > components, ::std::string_view id, bool includeCustom)
MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent > > getComponents (::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > components, bool includeCustom)
MCAPI ::std::vector<::std::string > getLore () const
MCAPI ::std::vector<::std::string > getTags () const
MCAPI::ScriptModuleMinecraft::ScriptItemStack & operator= (::ScriptModuleMinecraft::ScriptItemStack const &)
MCAPI void setAmountV010 (int amount)
MCAPI ::Scripting::Result_deprecated< void > setCanDestroy (::std::optional<::std::vector<::std::string > > const &blockIdentifiers)
MCAPI ::Scripting::Result_deprecated< void > setCanPlaceOn (::std::optional<::std::vector<::std::string > > const &blockIdentifiers)
MCAPI void setData (int data)
MCAPI ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError > setDynamicProperty (::Scripting::ContextConfig const &contextConfig, ::std::string const &key, ::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > const &optionalValue)
MCAPI ~ScriptItemStack ()
MCAPI void * $ctor (::Scripting::WeakLifetimeScope &scope, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > const &itemTypeHandle, int amount, int data)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::Scripting::ClassBinding bind (::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > &itemComponents, ::Scripting::Version const &version)
static MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > createHandle (::Scripting::WeakLifetimeScope scope, ::ItemStackBase const &item)
static MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > > createOptionalHandle (::Scripting::WeakLifetimeScope scope, ::ItemStackBase const &item)
static MCAPI ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface > createRawLoreVector (::std::vector<::std::string > lore)
static MCAPI ::std::optional<::std::vector<::std::string > > tryCreateLoreVector (::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > > const &loreVariantList, ::std::string &errorMessage)
static MCAPI ::std::optional<::Scripting::ArgumentOutOfBoundsError > validateLoreLength (::std::vector<::std::string > const &loreList)

Public Attributes

::ll::TypedStorage< 8, 128, ::ItemInstance > mItemInstance
::ll::TypedStorage< 8, 16, ::Scripting::WeakLifetimeScope > mScope
::ll::TypedStorage< 8, 32, ::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > > mScriptStack
::ll::TypedStorage< 8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > > mItemType
::ll::TypedStorage< 8, 64, ::std::unordered_map< ::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent > > > mAttachedComponents

Constructor & Destructor Documentation

◆ ScriptItemStack()

MCAPI ScriptModuleMinecraft::ScriptItemStack::ScriptItemStack ( ::Scripting::WeakLifetimeScope & scope,
::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > const & itemTypeHandle,
int amount,
int data )
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.

◆ ~ScriptItemStack()

MCAPI ScriptModuleMinecraft::ScriptItemStack::~ScriptItemStack ( )
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.

Member Function Documentation

◆ _validateDynamicProperty()

MCAPI ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError > ScriptModuleMinecraft::ScriptItemStack::_validateDynamicProperty ( ::std::string const & key,
::std::variant< double, float, bool, ::std::string, ::Vec3 > const & value ) 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.

◆ getCanDestroy()

MCAPI ::std::vector<::std::string > ScriptModuleMinecraft::ScriptItemStack::getCanDestroy ( ) 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.

◆ getCanPlaceOn()

MCAPI ::std::vector<::std::string > ScriptModuleMinecraft::ScriptItemStack::getCanPlaceOn ( ) 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.

◆ getComponent()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent > > ScriptModuleMinecraft::ScriptItemStack::getComponent ( ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > components,
::std::string_view id,
bool includeCustom )
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.

◆ getComponents()

MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent > > ScriptModuleMinecraft::ScriptItemStack::getComponents ( ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > components,
bool includeCustom )
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.

◆ getLore()

MCAPI ::std::vector<::std::string > ScriptModuleMinecraft::ScriptItemStack::getLore ( ) 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.

◆ getTags()

MCAPI ::std::vector<::std::string > ScriptModuleMinecraft::ScriptItemStack::getTags ( ) 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.

◆ operator=()

MCAPI::ScriptModuleMinecraft::ScriptItemStack & ScriptModuleMinecraft::ScriptItemStack::operator= ( ::ScriptModuleMinecraft::ScriptItemStack 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.

◆ setAmountV010()

MCAPI void ScriptModuleMinecraft::ScriptItemStack::setAmountV010 ( int amount)
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.

◆ setCanDestroy()

MCAPI ::Scripting::Result_deprecated< void > ScriptModuleMinecraft::ScriptItemStack::setCanDestroy ( ::std::optional<::std::vector<::std::string > > const & blockIdentifiers)
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.

◆ setCanPlaceOn()

MCAPI ::Scripting::Result_deprecated< void > ScriptModuleMinecraft::ScriptItemStack::setCanPlaceOn ( ::std::optional<::std::vector<::std::string > > const & blockIdentifiers)
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.

◆ setData()

MCAPI void ScriptModuleMinecraft::ScriptItemStack::setData ( int data)
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.

◆ setDynamicProperty()

MCAPI ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError > ScriptModuleMinecraft::ScriptItemStack::setDynamicProperty ( ::Scripting::ContextConfig const & contextConfig,
::std::string const & key,
::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > const & optionalValue )
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.

◆ bind()

MCAPI ::Scripting::ClassBinding ScriptModuleMinecraft::ScriptItemStack::bind ( ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > & itemComponents,
::Scripting::Version const & version )
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.

◆ createHandle()

MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > ScriptModuleMinecraft::ScriptItemStack::createHandle ( ::Scripting::WeakLifetimeScope scope,
::ItemStackBase const & item )
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.

◆ createOptionalHandle()

MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > > ScriptModuleMinecraft::ScriptItemStack::createOptionalHandle ( ::Scripting::WeakLifetimeScope scope,
::ItemStackBase const & item )
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.

◆ createRawLoreVector()

MCAPI ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface > ScriptModuleMinecraft::ScriptItemStack::createRawLoreVector ( ::std::vector<::std::string > lore)
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.

◆ tryCreateLoreVector()

MCAPI ::std::optional<::std::vector<::std::string > > ScriptModuleMinecraft::ScriptItemStack::tryCreateLoreVector ( ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > > const & loreVariantList,
::std::string & errorMessage )
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.

◆ validateLoreLength()

MCAPI ::std::optional<::Scripting::ArgumentOutOfBoundsError > ScriptModuleMinecraft::ScriptItemStack::validateLoreLength ( ::std::vector<::std::string > const & loreList)
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.

◆ $ctor()

MCAPI void * ScriptModuleMinecraft::ScriptItemStack::$ctor ( ::Scripting::WeakLifetimeScope & scope,
::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > const & itemTypeHandle,
int amount,
int data )
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 ScriptModuleMinecraft::ScriptItemStack::$dtor ( )
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: