PaperMC/paper-server/patches/sources/net/minecraft/world/entity/animal
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
..
allay Fix NBT type issues 2018-08-03 00:04:54 -04:00
armadillo Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
axolotl Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
camel Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
frog Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
goat Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
horse Improve death events 2018-08-21 01:39:35 +01:00
sniffer Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Animal.java.patch ExperienceOrbs API for Reason/Source/Triggering player 2017-12-19 16:31:46 -05:00
Bee.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Bucketable.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Cat.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Chicken.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Cow.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Dolphin.java.patch MC Dev fixes 2016-03-30 19:36:20 -04:00
Fox.java.patch Improve death events 2018-08-21 01:39:35 +01:00
IronGolem.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
MushroomCow.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Ocelot.java.patch Ocelot despawns should honor nametags and leash 2017-07-31 01:54:40 -05:00
Panda.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Parrot.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Pig.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Pufferfish.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Rabbit.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Sheep.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ShoulderRidingEntity.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
SnowGolem.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Squid.java.patch Use a Shared Random for Entities 2016-03-22 00:33:47 -04:00
Turtle.java.patch ExperienceOrbs API for Reason/Source/Triggering player 2017-12-19 16:31:46 -05:00
Wolf.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00