Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
DamageSensorComponent Class Reference

Public Member Functions

MCAPI::SharedTypes::Legacy::DealsDamage _recordDamageAndCheckIfDealt (::Actor &owner, ::Actor *sender, ::SharedTypes::Legacy::ActorDamageCause const &cause, ::Actor *damager, float amount, float preDamageHealth, ::VariantParameterList parameters, bool willTrigger)
MCAPI float getAdjustedDamage (::Actor &owner, ::ActorDamageSource const &source, float amount) const
MCAPI::SharedTypes::Legacy::DealsDamage recordBlockDamageAndCheckIfDealt (::Actor &owner, ::SharedTypes::Legacy::ActorDamageCause cause, float amount, ::BlockPos standingOnPos)
MCAPI::SharedTypes::Legacy::DealsDamage recordGenericDamageAndCheckIfDealt (::Actor &owner, ::ActorDamageSource const &source, float amount, float preDamageHealth, ::VariantParameterList parameters, bool willTrigger)

Static Public Member Functions

static MCAPI void _fillParameters (::VariantParameterList &inOutParameters, ::Actor &owner, ::Actor *sender, ::Actor *damager)

Public Attributes

::ll::TypedStorage< 4, 4, int > mDamageAmount
::ll::TypedStorage< 1, 1, bool > mDamageIsFatal
::ll::TypedStorage< 4, 4, int > mDamageCause
::ll::TypedStorage< 8, 24, ::std::vector<::DamageSensorTrigger > > mTriggers

Member Function Documentation

◆ getAdjustedDamage()

MCAPI float DamageSensorComponent::getAdjustedDamage ( ::Actor & owner,
::ActorDamageSource const & source,
float amount ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ recordBlockDamageAndCheckIfDealt()

MCAPI::SharedTypes::Legacy::DealsDamage DamageSensorComponent::recordBlockDamageAndCheckIfDealt ( ::Actor & owner,
::SharedTypes::Legacy::ActorDamageCause cause,
float amount,
::BlockPos standingOnPos )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _fillParameters()

MCAPI void DamageSensorComponent::_fillParameters ( ::VariantParameterList & inOutParameters,
::Actor & owner,
::Actor * sender,
::Actor * damager )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: