LeviLamina
Loading...
Searching...
No Matches
ItemEnchants.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/item/enchanting/EnchantmentInstance.h"
5
6// auto generated forward declare list
7// clang-format off
9class ListTag;
10struct EnchantResult;
11// clang-format on
12
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<4, 4, int> mSlot;
18 ::ll::TypedStorage<8, 72, ::std::array<::std::vector<::EnchantmentInstance>, 3>> mItemEnchants;
19 // NOLINTEND
20
21public:
22 // member functions
23 // NOLINTBEGIN
24 MCAPI void _fromList(::ListTag const& tag);
25
26 MCAPI ::std::unique_ptr<::ListTag> _toList() const;
27
28 MCAPI int addEnchants(::ItemEnchants const& enchants, bool allowNonVanilla);
29
30 MCAPI ::EnchantResult canEnchant(::EnchantmentInstance enchant, bool allowNonVanilla);
31
32 MCAPI ::std::vector<::EnchantmentInstance> getAllEnchants() const;
33
34 MCAPI ::std::array<::std::vector<::EnchantmentInstance>, 3> getEnchantInstances() const;
35
36 MCAPI ::std::vector<::std::string> getEnchantNames() const;
37
38 MCAPI int getTotalValue(bool bookModifier) const;
39
40 MCAPI bool operator==(::ItemEnchants const& rhs) const;
41
42 MCAPI void setEnchantInstances(::std::array<::std::vector<::EnchantmentInstance>, 3> enchants);
43 // NOLINTEND
44};
Definition EnchantmentInstance.h:8
Definition ItemEnchants.h:13
Definition ListTag.h:19
Definition EnchantResult.h:8