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
18struct ScriptItemEnchantmentType {
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 // prevent constructor by default
33 ScriptItemEnchantmentType& operator=(ScriptItemEnchantmentType const&);
34 ScriptItemEnchantmentType(ScriptItemEnchantmentType const&);
35 ScriptItemEnchantmentType();
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCFOLD ::std::string getName() const;
41
42 MCAPI ::ScriptModuleMinecraft::ScriptItemEnchantmentType&
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static ::Scripting::ClassBinding bind();
50
51 MCAPI static ::Enchant::Type getEnchantType(
52 ::std::variant<
54 ::std::string> const& enchantmentTypeOrId
55 );
56
57 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemEnchantmentType>
58 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::Enchant::Type enchantmentType);
59 // NOLINTEND
60};
61
62} // namespace ScriptModuleMinecraft
Definition Enchant.h:18
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ScriptItemEnchantmentType.h:18
Definition ClassBinding.h:19