Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.event.entity;
2
3import org.bukkit.entity.Entity;
4import org.bukkit.inventory.ItemStack;
5
6import java.util.List;
7
8/**
9 * Thrown whenever a LivingEntity dies
10 */
11public class EntityDeathEvent extends EntityEvent {
12 private List<ItemStack> drops;
13
14 public EntityDeathEvent(final Entity what, final List<ItemStack> drops) {
15 super(Type.ENTITY_DEATH, what);
16 this.drops = drops;
17 }
18
19 /**
20 * Gets all the items which will drop when the entity dies
21 *
22 * @return Items to drop when the entity dies
23 */
24 public List<ItemStack> getDrops() {
25 return drops;
26 }
27}