Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MeleeWeaponEnchant.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;
11// clang-format on
12
13class MeleeWeaponEnchant : public ::Enchant {
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 virtual int getMinCost(int level) const /*override*/;
18
19 virtual int getMaxCost(int level) const /*override*/;
20
21 virtual int getMaxLevel() const /*override*/;
22
23 virtual float getDamageBonus(int level, ::Actor const& target, ::Actor const&) const /*override*/;
24
25 virtual void doPostAttack(::Actor& attacker, ::Actor& victim, int level) const /*override*/;
26
27 virtual bool isMeleeDamageEnchant() const /*override*/;
28
29 virtual bool _isValidEnchantmentTypeForCategory(::Enchant::Type type) const /*override*/;
30 // NOLINTEND
31
32public:
33 // static variables
34 // NOLINTBEGIN
35 MCNAPI static ::std::vector<::Enchant::Type> const& VALID_ENCHANTMENTS();
36 // NOLINTEND
37
38public:
39 // virtual function thunks
40 // NOLINTBEGIN
41 MCNAPI int $getMinCost(int level) const;
42
43 MCNAPI int $getMaxCost(int level) const;
44
45 MCAPI int $getMaxLevel() const;
46
47 MCNAPI float $getDamageBonus(int level, ::Actor const& target, ::Actor const&) const;
48
49 MCNAPI void $doPostAttack(::Actor& attacker, ::Actor& victim, int level) const;
50
51 MCNAPI bool $isMeleeDamageEnchant() const;
52
53 MCNAPI bool $_isValidEnchantmentTypeForCategory(::Enchant::Type type) const;
54
55
56 // NOLINTEND
57};
Definition Actor.h:116
Definition MeleeWeaponEnchant.h:13
MCAPI void $doPostAttack(::Actor &attacker, ::Actor &victim, int level) const
MCAPI int $getMaxCost(int level) const
MCAPI bool $isMeleeDamageEnchant() const
MCAPI bool $_isValidEnchantmentTypeForCategory(::Enchant::Type type) const
MCAPI float $getDamageBonus(int level, ::Actor const &target, ::Actor const &) const
static MCAPI ::std::vector<::Enchant::Type > const & VALID_ENCHANTMENTS()
MCAPI int $getMinCost(int level) const