PaperMC/paper-server/patches/sources/net/minecraft
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
..
advancements Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
commands Add UnknownCommandEvent 2017-06-17 18:48:21 -04:00
core Optimize MappedRegistry 2018-08-26 20:49:50 -04:00
nbt MC Dev fixes 2016-03-30 19:36:20 -04:00
network Disable Explicit Network Manager Flushing 2018-03-11 14:13:33 -04:00
resources MC Dev fixes 2016-03-30 19:36:20 -04:00
server Improve death events 2018-08-21 01:39:35 +01:00
stats Allow statistics to be disabled/forced 2014-01-07 15:56:26 +00:00
util PreCreatureSpawnEvent 2018-01-14 17:01:31 -05:00
world Improve death events 2018-08-21 01:39:35 +01:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Do not submit profile lookups to worldgen threads 2021-08-08 16:26:46 -07:00