Examples of addAmount()


Examples of org.fenixedu.academic.dto.accounting.sibsPaymentFileProcessReport.SibsPaymentFileProcessReportDTO.addAmount()

    }

    private void createSibsFileReport(SibsIncommingPaymentFile sibsIncomingPaymentFile, ProcessResult result) throws Exception {
        final SibsPaymentFileProcessReportDTO reportDTO = new SibsPaymentFileProcessReportDTO(sibsIncomingPaymentFile);
        for (final SibsIncommingPaymentFileDetailLine detailLine : sibsIncomingPaymentFile.getDetailLines()) {
            reportDTO.addAmount(detailLine, getPaymentCode(detailLine, result));
        }
        SibsPaymentFileProcessReport.create(reportDTO);
        result.addMessage("label.manager.SIBS.reportCreated");
    }
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

        case RIGHT_CLICK:
          Slot inv = PlayerUtil.getHeldSlot(pie.getEntity());
          if (inv != null && this.canPlay(inv.get())) {
            this.setPlayedItem(inv.get().clone().setAmount(1));
            if (!PlayerUtil.isCostSuppressed(pie.getEntity())) {
              inv.addAmount(-1);
            }
          } else {
            this.eject();
          }
      }
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

      if (drop == null) {
        return;
      } else {
        drop = drop.clone().setAmount(1);
      }
      selected.addAmount(-1);
      dropItem(drop);
    }
  }

  // Abilities
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

          break;
        case RIGHT_CLICK:
          Slot slot = PlayerUtil.getHeldSlot(getOwner());
          if (slot != null && slot.get() != null) {
            setMaterial(slot.get().getMaterial());
            slot.addAmount(-1);
          }
          break;
      }
    }
  }
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

          Slot slot = PlayerUtil.getHeldSlot(player);
          if (slot.get() != null) {
            ItemStack stack = slot.get();
            if (stack.getMaterial() instanceof Fuel) {
              setFueled(true);
              slot.addAmount(-1);
            }
          }
      }
    }
    super.onInteract(event);
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

  public void onInteractBy(Entity entity, Block block, Action type, BlockFace clickedFace) {
    super.onInteractBy(entity, block, type, clickedFace);
    Slot inv = PlayerUtil.getHeldSlot(entity);
    if (inv != null && inv.get() != null && type.equals(Action.RIGHT_CLICK)) {
      if (grow(block, inv.get().getMaterial()) && !PlayerUtil.isCostSuppressed(entity)) {
        inv.addAmount(-1);
      }
    }
  }

  // TODO: Trampling
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

  public void onInteractBy(Entity entity, Block block, Action type, BlockFace clickedFace) {
    super.onInteractBy(entity, block, type, clickedFace);
    Slot inv = PlayerUtil.getHeldSlot(entity);
    if (inv != null && inv.get() != null && type.equals(Action.RIGHT_CLICK)) {
      if (grow(block, inv.get().getMaterial()) && !PlayerUtil.isCostSuppressed(entity)) {
        inv.addAmount(-1);
      }
    }
  }

  // TODO: Trampling
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

      return;
    }
    Slot inv = PlayerUtil.getHeldSlot(entity);
    if (inv != null && inv.get() != null && inv.get().isMaterial(Dye.BONE_MEAL)) {
      if (GenericMath.getRandom().nextDouble() < 0.45D && grow(block, inv.get().getMaterial()) && !PlayerUtil.isCostSuppressed(entity)) {
        inv.addAmount(-1);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

          if (playerQuickbar == null) {
            return;
          }
          final Slot selected = playerQuickbar.getSelectedSlot();
          if (selected.get() != null && selected.get().equalsIgnoreSize(new ItemStack(VanillaMaterials.BUCKET, 0))) {
            selected.addAmount(-1);
            playerQuickbar.add(new ItemStack(VanillaMaterials.MILK_BUCKET, 1));
          }
      }
    }
  }
View Full Code Here

Examples of org.spout.api.inventory.Slot.addAmount()

  public void onInteractBy(Entity entity, Block block, Action type, BlockFace clickedFace) {
    super.onInteractBy(entity, block, type, clickedFace);
    Slot inv = PlayerUtil.getHeldSlot(entity);
    if (inv != null && inv.get() != null && type.equals(Action.RIGHT_CLICK)) {
      if (grow(block, inv.get().getMaterial()) && !PlayerUtil.isCostSuppressed(entity)) {
        inv.addAmount(-1);
      }
    }
  }

  // TODO: Trampling
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.