Package games.stendhal.server.entity.item

Examples of games.stendhal.server.entity.item.ConsumableItem.consumed()


  public void consume(final int turn) {
    Collections.sort(itemsToConsume);
    if (itemsToConsume.size() > 0) {
      final ConsumableItem food = itemsToConsume.get(0);
      if (food.consumed()) {
        itemsToConsume.remove(0);
      } else {
        if (turn % food.getFrecuency() == 0) {
          logger.debug("Consumed item: " + food);
          final int amount = food.consume();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.