Skip to content
On this page

Fabric

ServerEntityCombatEvent

top.katton.api.eventfabric/src/main/kotlin/top/katton/api/event/ServerEntityCombatEvent.kt
Server entity combat events for Fabric platform.

ServerEntityCombatEvent

FabricObject
kotlin
@Suppress("unused")
object ServerEntityCombatEvent

Server entity combat events for Fabric platform.

This object provides events related to entity combat including entity kills, critical hits, and shield blocking.

ServerEntityCombatEvent.onAfterKilledOtherEntity

FabricProperty
kotlin
val onAfterKilledOtherEntity

Event triggered after an entity kills another entity. This is a notification event that cannot be cancelled.

ServerEntityCombatEvent.onShieldBlock

FabricProperty
kotlin
@JvmField
@JvmField val onShieldBlock

Event 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.