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

Public Member Functions

MCAPI ScriptItemStack (::ScriptModuleMinecraft::ScriptItemStack &&)
MCAPI ScriptItemStack (::ScriptModuleMinecraft::ScriptItemStack const &)
MCAPI ScriptItemStack (::Scripting::WeakLifetimeScope &scope, ::ItemStackBase const &item, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > const &itemTypeHandle)
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 ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStackclone (::Scripting::WeakLifetimeScope scope) 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::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > getDynamicProperty (::Scripting::ContextConfig const &contextConfig, ::std::string const &key)
MCAPI ::std::vector<::std::string > getDynamicPropertyIds (::Scripting::ContextConfig const &contextConfig)
MCAPI int getDynamicPropertyTotalByteCount (::Scripting::ContextConfig const &contextConfig)
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<::ScriptModuleMinecraft::ScriptRawMessageInterfacegetRawLore () const
MCAPI ::std::vector<::std::string > getTags () const
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemTypegetType () const
MCAPI::std::string getTypeId () const
MCAPI bool hasComponent (::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents > components, ::std::string_view id, bool includeCustom)
MCAPI bool hasTag (::std::string const &tag) const
MCAPI bool matches (::std::string itemName, ::std::optional<::std::unordered_map<::std::string, ::std::variant< int, ::std::string, bool > > > properties) const
MCAPI::ScriptModuleMinecraft::ScriptItemStack & operator= (::ScriptModuleMinecraft::ScriptItemStack &&)
MCAPI::ScriptModuleMinecraft::ScriptItemStack & operator= (::ScriptModuleMinecraft::ScriptItemStack const &)
MCAPI ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsErrorsetAmount (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 ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIErrorsetDynamicProperties (::Scripting::ContextConfig const &contextConfig, ::std::unordered_map< ::std::string, ::std::optional<::std::variant< double, float, bool, ::std::string, ::Vec3 > > > const &values)
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 ::Scripting::Result< void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::ErrorsetLore (::std::optional< ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface > > > const &loreVariantList)
MCAPI ::Scripting::Result_deprecated< void > setNameTag (::std::optional<::std::string > nameTag)
MCAPI void setNameTagV010 (::std::optional<::std::string > nameTag)
MCAPI void * $ctor (::ScriptModuleMinecraft::ScriptItemStack &&)
MCAPI void * $ctor (::ScriptModuleMinecraft::ScriptItemStack const &)
MCAPI void * $ctor (::Scripting::WeakLifetimeScope &scope, ::ItemStackBase const &item, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType > const &itemTypeHandle)
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 (::BaseGameVersion const &baseGameVersion, ::Scripting::Version const &version, ::WeakRef<::ScriptModuleMinecraft::IScriptItemCustomComponentReader const > itemCustomComponentRegistry)
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: