30class ScriptItemStack {
34 ::ll::TypedStorage<8, 128, ::ItemInstance> mItemInstance;
35 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
36 ::ll::TypedStorage<8, 32, ::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>
38 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemType>> mItemType;
56 ScriptItemStack(ScriptItemStack
const&);
67 MCAPI ScriptItemStack(
74 MCAPI ::Scripting::Result<void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError>
75 _validateDynamicProperty(
76 ::std::string
const& key,
77 ::std::variant<double, float, bool, ::std::string, ::Vec3>
const& value
80 MCAPI ::std::vector<::std::string> getCanDestroy()
const;
82 MCAPI ::std::vector<::std::string> getCanPlaceOn()
const;
84 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent>>
86 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents> components,
87 ::std::string_view
id,
91 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemComponent>>
92 getComponents(::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents> components,
bool includeCustom);
94 MCAPI ::std::vector<::std::string> getLore()
const;
96 MCAPI ::std::vector<::std::string> getTags()
const;
100 MCAPI
void setAmountV010(
int amount);
102 MCAPI ::Scripting::Result_deprecated<void>
103 setCanDestroy(::std::optional<::std::vector<::std::string>>
const& blockIdentifiers);
105 MCAPI ::Scripting::Result_deprecated<void>
106 setCanPlaceOn(::std::optional<::std::vector<::std::string>>
const& blockIdentifiers);
108 MCAPI
void setData(
int data);
110 MCAPI ::Scripting::Result<void, ::Scripting::ArgumentOutOfBoundsError, ::Scripting::UnsupportedAPIError>
113 ::std::string
const& key,
114 ::std::optional<::std::variant<double, float, bool, ::std::string, ::Vec3>>
const& optionalValue
117 MCAPI ~ScriptItemStack();
123 MCAPI static ::Scripting::ClassBinding bind(
124 ::std::shared_ptr<::ScriptModuleMinecraft::ScriptItemComponents>& itemComponents,
128 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>
131 MCAPI static ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>
134 MCAPI static ::std::vector<::ScriptModuleMinecraft::ScriptRawMessageInterface>
135 createRawLoreVector(::std::vector<::std::string> lore);
137 MCAPI static ::std::optional<::std::vector<::std::string>> tryCreateLoreVector(
138 ::std::vector<::std::variant<::std::string, ::ScriptModuleMinecraft::ScriptRawMessageInterface>>
const&
140 ::std::string& errorMessage
143 MCAPI static ::std::optional<::Scripting::ArgumentOutOfBoundsError>
144 validateLoreLength(::std::vector<::std::string>
const& loreList);
Definition ContextConfig.h:20