跳到主要内容

后事件-AfterEvents

可监听已发生的事件列表

entityHurt

实体受伤事件

Details

参数:

  • damage
    • 受到的伤害值
    • 类型:int
  • damageSource
    • 伤害来源,包含攻击者/投掷物,伤害原因(类型)
    • 类型:EntityDamageSource
  • hurtEntity
    • 受伤实体
    • 类型:Entity

entityHitEntity

实体攻击实体事件

Details

参数:

  • damagingEntity
  • hitEntity
    • 受伤实体
    • 类型:Entity