LeviLamina
Loading...
Searching...
No Matches
DamageAbsorptionItemComponentUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
7
8// auto generated forward declare list
9// clang-format off
11class Mob;
12class SimpleContainer;
13// clang-format on
14
15namespace DamageAbsorptionItemComponentUtils {
16// functions
17// NOLINTBEGIN
18MCNAPI bool canEquipmentAbsorbDamage(::Mob const& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
19
20MCNAPI bool tryAbsorbDamageWithEquipment(::Mob& mob, ::ActorDamageSource const& source, float damage);
21
22MCNAPI bool tryAbsorbDamageWithItemInSlot(
23 ::Mob& mob,
24 ::SimpleContainer const& armorContainer,
25 int slot,
26 ::ActorDamageSource const& source,
27 float damage
28);
29// NOLINTEND
30
31} // namespace DamageAbsorptionItemComponentUtils
Definition ActorDamageSource.h:18
Definition Mob.h:57
Definition SimpleContainer.h:16