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
15class ProtectionEnchant : public ::Enchant {
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 virtual int getMinCost(int level) const /*override*/;
20
21 virtual int getMaxCost(int level) const /*override*/;
22
23 virtual int getMaxLevel() const /*override*/;
24
25 virtual int getDamageProtection(int level, ::ActorDamageSource const& source) const /*override*/;
26
27 virtual void doPostHurt(::ItemInstance& item, ::Actor& victim, ::Actor& attacker, int level) const /*override*/;
28
29 virtual bool isProtectionEnchant() const /*override*/;
30
31 virtual bool _isValidEnchantmentTypeForCategory(::Enchant::Type type) const /*override*/;
32
33 virtual ~ProtectionEnchant() /*override*/ = default;
34 // NOLINTEND
35
36public:
37 // static variables
38 // NOLINTBEGIN
39 MCAPI static ::std::vector<::Enchant::Type> const& VALID_ENCHANTMENTS();
40 // NOLINTEND
41
42public:
43 // virtual function thunks
44 // NOLINTBEGIN
45 MCAPI int $getMinCost(int level) const;
46
47 MCAPI int $getMaxCost(int level) const;
48
49 MCAPI int $getMaxLevel() const;
50
51 MCAPI int $getDamageProtection(int level, ::ActorDamageSource const& source) const;
52
53 MCAPI void $doPostHurt(::ItemInstance& item, ::Actor& victim, ::Actor& attacker, int level) const;
54
55 MCFOLD bool $isProtectionEnchant() const;
56
57 MCAPI bool $_isValidEnchantmentTypeForCategory(::Enchant::Type type) const;
58
59
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCAPI static void** $vftable();
66 // NOLINTEND
67};
Definition ActorDamageSource.h:18
Definition Actor.h:105
Definition ItemInstance.h:15
Definition ProtectionEnchant.h:15