@EventBusSubscriber( modid = top.katton.Katton.MOD_ID, value = [Dist.DEDICATED_SERVER] )
modidServer-side living entity events for NeoForge platform.
This object provides events related to living entity lifecycle including damage, death, drops, falling, jumping, and mob conversion.
ServerLivingEntityEvent.onLivingHurt
val onLivingHurtEvent triggered when a living entity is hurt. Can be cancelled to prevent the damage.
ServerLivingEntityEvent.onAllowDamage
@JvmField
@JvmField val onAllowDamageEvent triggered to allow or deny damage to a living entity.
Returns
true to allow the damage, false to cancel it.
ServerLivingEntityEvent.onAfterDamage
@JvmField
@JvmField val onAfterDamageEvent triggered after a living entity takes damage.
ServerLivingEntityEvent.onAllowDeath
@JvmField
@JvmField val onAllowDeathEvent triggered to allow or deny death of a living entity.
Returns
true to allow the death, false to cancel it.
ServerLivingEntityEvent.onAfterDeath
@JvmField
@JvmField val onAfterDeathEvent triggered after a living entity dies.
ServerLivingEntityEvent.onLivingDrops
val onLivingDropsEvent triggered when a living entity drops items upon death. Can be cancelled to prevent drops.
ServerLivingEntityEvent.onLivingFall
val onLivingFallEvent triggered when a living entity falls. Can be cancelled to prevent fall damage processing.
ServerLivingEntityEvent.onLivingJump
val onLivingJumpEvent triggered when a living entity jumps.
ServerLivingEntityEvent.onMobConversion
val onMobConversionEvent triggered when a mob is converted to another type (e.g., zombie villager curing, piglin zombification).