LeviLamina
Loading...
Searching...
No Matches
ProtectionEnchant.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
10class Actor;
12class ItemInstance;
13// clang-format on
14
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 // vIndex: 2
20 virtual int getMinCost(int level) const /*override*/;
21
22 // vIndex: 3
23 virtual int getMaxCost(int level) const /*override*/;
24
25 // vIndex: 5
26 virtual int getMaxLevel() const /*override*/;
27
28 // vIndex: 6
29 virtual int getDamageProtection(int level, ::ActorDamageSource const& source) const /*override*/;
30
31 // vIndex: 11
32 virtual void doPostHurt(::ItemInstance& item, ::Actor& victim, ::Actor& attacker, int level) const /*override*/;
33
34 // vIndex: 13
35 virtual bool isProtectionEnchant() const /*override*/;
36
37 // vIndex: 16
38 virtual bool _isValidEnchantmentTypeForCategory(::Enchant::Type type) const /*override*/;
39
40 // vIndex: 0
41 virtual ~ProtectionEnchant() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // static variables
46 // NOLINTBEGIN
47 MCAPI static ::std::vector<::Enchant::Type> const& VALID_ENCHANTMENTS();
48 // NOLINTEND
49
50public:
51 // destructor thunk
52 // NOLINTBEGIN
53
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI int $getMinCost(int level) const;
60
61 MCAPI int $getMaxCost(int level) const;
62
63 MCAPI int $getMaxLevel() const;
64
65 MCAPI int $getDamageProtection(int level, ::ActorDamageSource const& source) const;
66
67 MCAPI void $doPostHurt(::ItemInstance& item, ::Actor& victim, ::Actor& attacker, int level) const;
68
69 MCFOLD bool $isProtectionEnchant() const;
70
71 MCAPI bool $_isValidEnchantmentTypeForCategory(::Enchant::Type type) const;
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCAPI static void** $vftable();
78 // NOLINTEND
79};
Definition ActorDamageSource.h:18
Definition Actor.h:104
Definition Enchant.h:14
Definition ItemInstance.h:16
Definition ProtectionEnchant.h:15