Examples of copy()


Examples of mikera.vectorz.AVector.copy()

    for (int i=0; i<count; i++) {
      AVector myVec=unsafeGetVec(i);
      AVector aVec=a.getColumn(i);
      if (myVec==null) {
        if (!aVec.isZero()) {
          unsafeSetVec(i,aVec.copy());
        }
      } else if (myVec.isMutable()) {
        myVec.add(aVec);
      } else {
        unsafeSetVec(i,myVec.addCopy(aVec));
View Full Code Here

Examples of name.pehl.karaka.shared.model.Activity.copy()

        else
        {
            // Just store the new activity
            if (!activity.isTransient())
            {
                activity = activity.copy();
                activity.setProject(project);
            }
            // selectedDate must not be changed!
            Date now = new Date();
            Date start = selectedDate;
View Full Code Here

Examples of net.algart.arrays.UpdatableBitArray.copy()

            thinnedYM.copy(thinningYM.array());
            if (!only4Direction) {
                thinnedXPYP.copy(thinningXPYP.array());
                thinnedXMYP.copy(thinningXMYP.array());
                thinnedXMYM.copy(thinningXMYM.array());
                thinnedXPYM.copy(thinningXPYM.array());
            }
            int b1, b2, b3, b4;
            b1 = thinnedXP.getBit(2 * 8 + 2) ? 1 : 0;
            b2 = thinnedYP.getBit(2 * 8 + 2) ? 1 : 0;
            b3 = thinnedXM.getBit(2 * 8 + 2) ? 1 : 0;
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.copy()

        for (DcObject dco : vc.getItems()) {
            boolean exists = false;
            for (int j = 0; j < c.length; j++) {
                DcObject dcoCached = c[j];
                if (dcoCached.getID().equals(dco.getID())) {
                    dcoCached.copy(dco, true, true);
                    exists = true;
                    break;
                }
            }
View Full Code Here

Examples of net.fqsc.inscriptions.model.categories.CategorieParticipante.copy()

      update = false;
    }
    else
    {
      before = categorieParticipante;
      categorieParticipante = (CategorieParticipante) categorieParticipante
          .copy();
    }

    categorieParticipante.setPlaqueMin(plaqueMin);
    categorieParticipante.setPlaqueMax(plaqueMax);
View Full Code Here

Examples of net.fqsc.inscriptions.model.inscriptions.Tarification.copy()

      update = false;
    }
    else
    {
      before = tarification;
      tarification = (Tarification) tarification.copy();
    }

    tarification.setPrix(prix);

    boolean result;
View Full Code Here

Examples of net.minecraft.item.ItemStack.copy()

  public ItemStack getCraftingResult(InventoryCrafting var1) {
    ItemStack stackToDisenchant = null;
    for (int i = 0; i < var1.getSizeInventory(); i++) {
      ItemStack stack = var1.getStackInSlot(i);
      if (stack != null && stack.isItemEnchanted()) {
        stackToDisenchant = stack.copy();
        break;
      }
    }

    if (stackToDisenchant == null)
View Full Code Here

Examples of net.minecraft.nbt.NBTTagCompound.copy()

    ItemStack basic = ForestryBlock.farm.getItemStack(1, 0);
    for (EnumFarmBlock block : EnumFarmBlock.values()) {
      NBTTagCompound compound = new NBTTagCompound();
      block.saveToCompound(compound);

      basic.setTagCompound((NBTTagCompound) compound.copy());
      ShapedRecipeCustom.buildRecipe(basic.copy(), "I#I", "WCW", '#', block.getCraftingIngredient(), 'W', "slabWood", 'C', ForestryItem.tubes.getItemStack(1, 1), 'I', "ingotCopper");

    }

    ItemStack gearbox = ForestryBlock.farm.getItemStack(1, 2);
View Full Code Here

Examples of net.minecraft.src.ItemStack.copy()

        Slot var3 = (Slot)this.inventorySlots.get(par1);

        if (var3 != null && var3.getHasStack())
        {
            ItemStack var4 = var3.getStack();
            var2 = var4.copy();

            if (par1 < 58 && par1 > 39)
            {
                if (!this.mergeItemStack(var4, 58, 94, true))
                {
View Full Code Here

Examples of net.minecraftforge.fluids.FluidStack.copy()

    }

    //now check for empty fluid containers to fill
    FluidStack available = vat.outputTank.getFluid();
    if(available != null) {
      ItemStack res = FluidContainerRegistry.fillFluidContainer(available.copy(), item);
      FluidStack filled = FluidContainerRegistry.getFluidForFilledItem(res);

      if(filled == null) { //this shouldn't be necessary but it appears to be a bug as the above method doesnt work
        FluidContainerData[] datas = FluidContainerRegistry.getRegisteredFluidContainerData();
        for (FluidContainerData data : datas) {
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.