/** * Creates the death event for the specified entity. * * @param entity The player or npc whose death has just happened. */ public DeathEvent(Entity entity) { super(3500); this.entity = entity; this.entity.resetTurnTo(); this.entity.animate(entity.getDeathAnimation()); }