Skip to content
LeviMC
English
AutoLightDark
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 // NOLINTEND
33
34public:
35 // static variables
36 // NOLINTBEGIN
37 MCNAPI static ::std::vector<::Enchant::Type> const& VALID_ENCHANTMENTS();
38 // NOLINTEND
39
40public:
41 // virtual function thunks
42 // NOLINTBEGIN
43 MCNAPI int $getMinCost(int level) const;
44
45 MCNAPI int $getMaxCost(int level) const;
46
47 MCAPI int $getMaxLevel() const;
48
49 MCNAPI int $getDamageProtection(int level, ::ActorDamageSource const& source) const;
50
51 MCNAPI void $doPostHurt(::ItemInstance& item, ::Actor& victim, ::Actor& attacker, int level) const;
52
53 MCNAPI bool $isProtectionEnchant() const;
54
55 MCNAPI bool $_isValidEnchantmentTypeForCategory(::Enchant::Type type) const;
56
57
58 // NOLINTEND
59};
Definition ActorDamageSource.h:18
Definition Actor.h:116
Definition ItemInstance.h:15
Definition ProtectionEnchant.h:15
MCAPI bool $isProtectionEnchant() const
MCAPI bool $_isValidEnchantmentTypeForCategory(::Enchant::Type type) const
static MCAPI ::std::vector<::Enchant::Type > const & VALID_ENCHANTMENTS()
MCAPI int $getDamageProtection(int level, ::ActorDamageSource const &source) const
MCAPI void $doPostHurt(::ItemInstance &item, ::Actor &victim, ::Actor &attacker, int level) const
MCAPI int $getMaxCost(int level) const
MCAPI int $getMinCost(int level) const