kotlin
@Suppress("unused")
object ServerEntityCombatEventServer entity combat events for Fabric platform.
This object provides events related to entity combat including entity kills, critical hits, and shield blocking.
ServerEntityCombatEvent.onAfterKilledOtherEntity
kotlin
val onAfterKilledOtherEntityEvent triggered after an entity kills another entity. This is a notification event that cannot be cancelled.
ServerEntityCombatEvent.onShieldBlock
kotlin
@JvmField
@JvmField val onShieldBlockEvent triggered when an entity blocks with a shield. Can be used to modify the amount of damage blocked.
Returns
The amount of damage that should be blocked.