1 /* $Id$ */
2 /***************************************************************************
3  *                   (C) Copyright 2003-2010 - Stendhal                    *
4  ***************************************************************************
5  ***************************************************************************
6  *                                                                         *
7  *   This program is free software; you can redistribute it and/or modify  *
8  *   it under the terms of the GNU General Public License as published by  *
9  *   the Free Software Foundation; either version 2 of the License, or     *
10  *   (at your option) any later version.                                   *
11  *                                                                         *
12  ***************************************************************************/
13 package games.stendhal.server.entity.item.consumption;
14 
15 import games.stendhal.server.entity.item.ConsumableItem;
16 import games.stendhal.server.entity.player.Player;
17 
18 class Enchanter implements Feeder {
19 
20 	@Override
feed(final ConsumableItem item, final Player player)21 	public boolean feed(final ConsumableItem item, final Player player) {
22 		player.addMana(((ConsumableItem) item.splitOff(1)).getAmount(), true);
23 		return true;
24 	}
25 
26 }
27