kotlin
@Suppress("unused")
@EventBusSubscriber( modid = Katton.MOD_ID, value = [Dist.DEDICATED_SERVER] )
modidServer entity combat events for NeoForge platform.
This object provides events related to entity combat including critical hits, shield blocking, and entity kills.
ServerEntityCombatEvent.onAfterKilledOtherEntity
kotlin
@JvmField
@JvmField val onAfterKilledOtherEntityEvent triggered after an entity kills another entity. This is a notification event that cannot be cancelled.
ServerEntityCombatEvent.onCriticalHit
kotlin
val onCriticalHitEvent triggered when a critical hit is performed.
ServerEntityCombatEvent.onShieldBlock
kotlin
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.