31class ScriptItemStack {
35 ::ll::TypedStorage<8, 128, ::ItemInstance> mItemInstance;
36 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
37 ::ll::TypedStorage<8, 32, ::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>
39 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType>> mItemType;
51 ScriptItemStack(ScriptItemStack
const&);
57 MCAPI ScriptItemStack(
64 MCAPI ::Scripting::Result<void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError>
65 _validateDynamicProperty(
66 ::std::string
const& key,
67 ::std::variant<double, float, bool, ::std::string, ::Vec3>
const& value
70 MCAPI ::std::vector<::std::string> getCanDestroy()
const;
72 MCAPI ::std::vector<::std::string> getCanPlaceOn()
const;
74 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent>>
76 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents> components,
77 ::std::string_view
id,
81 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent>>
82 getComponents(::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents> components,
bool includeCustom);
84 MCAPI ::Scripting::Result<::std::string, ::Scripting::EngineError> getLocalizationKey()
const;
86 MCAPI ::std::vector<::std::string> getLore()
const;
88 MCAPI ::std::optional<::std::string> getNameTag()
const;
90 MCAPI ::std::vector<::std::string> getTags()
const;
92 MCAPI ::std::string getTypeId()
const;
96 MCAPI ::Scripting::Result_deprecated<void>
97 setCanDestroy(::std::optional<::std::vector<::std::string>>
const& blockIdentifiers);
99 MCAPI ::Scripting::Result_deprecated<void>
100 setCanPlaceOn(::std::optional<::std::vector<::std::string>>
const& blockIdentifiers);
102 MCAPI ::Scripting::Result<void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError>
105 ::std::string
const& key,
106 ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>>
const& optionalValue
109 MCAPI ~ScriptItemStack();
115 MCAPI static ::Scripting::ClassBinding bind(
116 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents>& itemComponents,
120 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>
123 MCAPI static ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>
126 MCAPI static ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface>
127 createRawLoreVector(::std::vector<::std::string> lore);
129 MCAPI static ::std::optional<::std::vector<::std::string>> tryCreateLoreVector(
130 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>>
const&
132 ::std::string& errorMessage
135 MCAPI static ::std::optional<::Scripting::ArgumentOutOfBoundsError>
136 validateLoreLength(::std::vector<::std::string>
const& loreList);
Definition ContextConfig.h:20