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/scripting/lifetime_registry/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
31#ifdef LL_PLAT_S
32public:
33 // prevent constructor by default
36
37#else // LL_PLAT_C
38#endif
39public:
40 // member functions
41 // NOLINTBEGIN
42#ifdef LL_PLAT_S
44
45 MCAPI ::ScriptModuleMinecraft::ScriptItemEnchantmentType&
47
48 MCAPI bool operator==(::ScriptModuleMinecraft::ScriptItemEnchantmentType const& other) const;
49
51#endif
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static ::Scripting::ClassBinding bind();
58
59 MCAPI static ::Enchant::Type getEnchantType(
60 ::std::variant<
62 ::std::string> const& enchantmentTypeOrId
63 );
64
65 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemEnchantmentType>
66 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::Enchant::Type enchantmentType);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72#ifdef LL_PLAT_S
73 MCAPI void* $ctor();
74#endif
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80#ifdef LL_PLAT_S
81 MCFOLD void $dtor();
82#endif
83 // NOLINTEND
84};
85
86} // namespace ScriptModuleMinecraft
Definition Enchant.h:19
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition ScriptItemEnchantmentType.h:18
Definition ClassBinding.h:19