LeviLamina
Loading...
Searching...
No Matches
ItemEnchants.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/enchanting/Enchant.h"
7
8// auto generated forward declare list
9// clang-format off
11class ListTag;
12struct EnchantResult;
13// clang-format on
14
15class ItemEnchants {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<4, 4, int> mSlot;
20 ::ll::TypedStorage<8, 72, ::std::array<::std::vector<::EnchantmentInstance>, 3>> mItemEnchants;
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 ItemEnchants();
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI explicit ItemEnchants(int slot);
31
32 MCAPI ItemEnchants(int slot, ::ListTag const& tag);
33
34 MCAPI void _fromList(::ListTag const& tag);
35
36 MCAPI ::std::unique_ptr<::ListTag> _toList() const;
37
38 MCAPI bool addEnchant(::EnchantmentInstance enchant, bool allowNonVanilla);
39
40 MCAPI int addEnchants(::ItemEnchants const& enchants, bool allowNonVanilla);
41
42 MCAPI ::EnchantResult canEnchant(::EnchantmentInstance enchant, bool allowNonVanilla);
43
44 MCAPI int count() const;
45
46 MCAPI ::std::vector<::EnchantmentInstance> getAllEnchants() const;
47
48 MCAPI ::std::array<::std::vector<::EnchantmentInstance>, 3> getEnchantInstances() const;
49
50 MCAPI ::std::vector<::std::string> getEnchantNames() const;
51
52 MCAPI ::EnchantmentInstance getEnchantment(::Enchant::Type enchantType);
53
54 MCAPI ::std::vector<::EnchantmentInstance> const& getEnchants(int activationType) const;
55
56 MCFOLD int getSlot() const;
57
58 MCAPI int getTotalValue(bool bookModifier) const;
59
60 MCAPI int hasEnchant(::Enchant::Type enchantType) const;
61
62 MCAPI bool isEmpty() const;
63
64 MCAPI bool operator==(::ItemEnchants const& rhs) const;
65
66 MCAPI void removeEnchantment(::Enchant::Type enchantType);
67
68 MCAPI void setEnchantInstances(::std::array<::std::vector<::EnchantmentInstance>, 3> enchants);
69
70 MCFOLD void setSlot(int slot);
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(int slot);
77
78 MCAPI void* $ctor(int slot, ::ListTag const& tag);
79 // NOLINTEND
80};
Definition EnchantmentInstance.h:8
Definition ListTag.h:21
Definition EnchantResult.h:8