- Enclosing class:
ServerEntityCombatEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
void
afterKilledOtherEntity(net.minecraft.server.level.ServerLevel world,
net.minecraft.world.entity.Entity entity,
net.minecraft.world.entity.LivingEntity killedEntity,
net.minecraft.world.damagesource.DamageSource damageSource)
Called after an entity has killed another entity.
-
Method Details
-
afterKilledOtherEntity
void afterKilledOtherEntity(net.minecraft.server.level.ServerLevel world,
net.minecraft.world.entity.Entity entity,
net.minecraft.world.entity.LivingEntity killedEntity,
net.minecraft.world.damagesource.DamageSource damageSource)
Called after an entity has killed another entity.
- Parameters:
world - the world
entity - the entity
killedEntity - the entity which was killed by the entity
damageSource - the damage source that killed the entity