PaperMC/paper-server/src/main/java
Phoenix616 04afedcccf Improve death events
This adds the ability to cancel the death events and to modify the sound
an entity makes when dying. (In cases were no sound should it will be
called with shouldPlaySound set to false allowing unsilencing of silent
entities)

It makes handling of entity deaths a lot nicer as you no longer need
to listen on the damage event and calculate if the entity dies yourself
to cancel the death which has the benefit of also receiving the dropped
items and experience which is otherwise only properly possible by using
internal code.

== AT ==
public net.minecraft.world.entity.LivingEntity getDeathSound()Lnet/minecraft/sounds/SoundEvent;
public net.minecraft.world.entity.LivingEntity getSoundVolume()F
2018-08-21 01:39:35 +01:00
..
ca/spottedleaf/moonrise MC Utils 2016-03-28 20:55:47 -04:00
com/destroystokyo/paper RangedEntity API 2018-06-26 22:00:49 -04:00
io/papermc/paper Option to use vanilla per-world scoreboard coloring on names 2016-04-06 01:04:23 -05:00
net/neoforged/art/internal Plugin remapping 2022-10-29 15:22:32 -07:00
org Improve death events 2018-08-21 01:39:35 +01:00