LeviLamina
Loading...
Searching...
No Matches
ScriptItemEnchantmentType.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/world/item/enchanting/Enchant.h"
8
9// auto generated forward declare list
10// clang-format off
11class Enchant;
12namespace Scripting { class WeakLifetimeScope; }
13namespace Scripting { struct ClassBinding; }
14// clang-format on
15
16namespace ScriptModuleMinecraft {
17
19public:
20 // ScriptItemEnchantmentType inner types define
21 using Key = ::std::string;
22
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::Enchant const*> mEnchant;
27 ::ll::TypedStorage<1, 1, ::Enchant::Type> mEnchantType;
28 ::ll::TypedStorage<8, 32, ::std::string> mName;
29 // NOLINTEND
30
31public:
32 // static functions
33 // NOLINTBEGIN
34 MCAPI static ::Scripting::ClassBinding bind();
35
36 MCAPI static ::Enchant::Type getEnchantType(
37 ::std::variant<
39 ::std::string> const& enchantmentTypeOrId
40 );
41
42 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemEnchantmentType>
43 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::Enchant::Type enchantmentType);
44 // NOLINTEND
45};
46
47} // namespace ScriptModuleMinecraft
Definition Enchant.h:19
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ScriptItemEnchantmentType.h:18
Definition ClassBinding.h:10