LeviLamina
Loading...
Searching...
No Matches
ScriptItemEnchantmentTypes.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
11namespace ScriptModuleMinecraft { struct ScriptItemEnchantmentType; }
12namespace Scripting { class WeakLifetimeScope; }
13namespace Scripting { struct ClassBinding; }
14// clang-format on
15
16namespace ScriptModuleMinecraft {
17
19public:
20 // ScriptItemEnchantmentTypes inner types define
21 using EnchantmentTypesMap = ::std::unordered_map<
22 ::Enchant::Type,
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<
29 8,
30 64,
31 ::std::unordered_map<
32 ::Enchant::Type,
34 mEnchantments;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI void _generateAllEnchantmentTypeHandles(::Scripting::WeakLifetimeScope& scope);
41
42 MCAPI void _generateRemainingEnchantmentTypeHandles(::Scripting::WeakLifetimeScope& scope);
43
44 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemEnchantmentType>>
45 get(::Scripting::WeakLifetimeScope& scope, ::std::string const& enchantmentId);
46
47 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemEnchantmentType>>
48 getAllEnchantmentTypes(::Scripting::WeakLifetimeScope& scope);
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static ::Scripting::ClassBinding bind();
55 // NOLINTEND
56};
57
58} // namespace ScriptModuleMinecraft
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition ScriptItemEnchantmentType.h:18
Definition ScriptItemEnchantmentTypes.h:18
Definition ClassBinding.h:19