PaperMC/paper-server/patches/sources/net/minecraft/server/level
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
..
ChunkHolder.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ChunkMap.java.patch PlayerNaturallySpawnCreaturesEvent 2018-01-14 17:36:02 -05:00
DistanceManager.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ServerChunkCache.java.patch PlayerNaturallySpawnCreaturesEvent 2018-01-14 17:36:02 -05:00
ServerEntity.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ServerLevel.java.patch Add Debug Entities option to debug dupe uuid issues 2018-07-21 08:25:40 -04:00
ServerPlayer.java.patch Improve death events 2018-08-21 01:39:35 +01:00
ServerPlayerGameMode.java.patch Extend Player Interact cancellation 2018-02-11 10:43:46 +00:00
TicketType.java.patch MC Utils 2016-03-28 20:55:47 -04:00
WorldGenRegion.java.patch MC Utils 2016-03-28 20:55:47 -04:00