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 ::Scripting::Result<::std::string, ::Scripting::EngineErrorgetLocalizationKey () const
MCAPI ::std::vector<::std::string > getLore () const
MCAPI ::std::optional<::std::string > getNameTag () const
MCAPI ::std::vector<::std::string > getTags () const
MCAPI::std::string getTypeId () const
MCAPI::ScriptModuleMinecraft::ScriptItemStack & operator= (::ScriptModuleMinecraft::ScriptItemStack const &)
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 ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIErrorsetDynamicProperty (::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::ScriptItemStackcreateHandle (::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::ScriptRawMessageInterfacecreateRawLoreVector (::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::ArgumentOutOfBoundsErrorvalidateLoreLength (::std::vector<::std::string > const &loreList)

Public Attributes

::ll::TypedStorage< 8, 128, ::ItemInstancemItemInstance
::ll::TypedStorage< 8, 16, ::Scripting::WeakLifetimeScopemScope
::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: