LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptItemStack Class Reference

Public Member Functions

 ScriptItemStack (ScriptItemStack const &)
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 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

The documentation for this class was generated from the following file: