Examples of clone()


Examples of l2p.gameserver.model.instances.L2DoorInstance.clone()

                  {
                    _log.warning("Door " + doorId + " not found!");
                  }
                  else
                  {
                    door = newDoor.clone();
                    door.setOpen(opened);
                    door.setHPVisible(!invul);
                    door.setIsInvul(invul);
                    if(!_instancedZones.get(instanceId).get(0).getDoors().add(door))
                    {
View Full Code Here

Examples of l2p.util.Location.clone()

    // save spawned points
    mob.setSpawnedLoc(newLoc);
    // Спавнится в указанном отражении
    mob.setReflection(getReflection());
    // Является ли моб "подземным" мобом?
    mob.setUnderground(GeoEngine.getHeight(newLoc, 0) < GeoEngine.getHeight(newLoc.clone().changeZ(5000), 0));
    if(spawn)
    {
      // Launch the action onSpawn for the L2NpcInstance
      mob.onSpawn();
      // Init other values of the L2NpcInstance (ex : from its L2CharTemplate for INT, STR, DEX...) and add it in the world as a visible object
View Full Code Here

Examples of lineage2.gameserver.model.items.ItemAttributes.clone()

                if ((rndNum >= chanceFrom) && (rndNum <= (chance + chanceFrom)))
                {
                  product.setEnchantLevel(enchantLevel);
                  if (attributes != null)
                  {
                    product.setAttributes(attributes.clone());
                  }
                  if (augmentationId != 0)
                  {
                    product.setAugmentationId(augmentationId);
                  }
View Full Code Here

Examples of lineage2.gameserver.utils.Location.clone()

    if (getRestartPoints() == null)
    {
      return null;
    }
    Location loc = getRestartPoints().get(Rnd.get(getRestartPoints().size()));
    return loc.clone();
  }
 
  /**
   * Method getPKSpawn.
   * @return Location
View Full Code Here

Examples of lipstone.joshua.parser.util.ConsCell.clone()

        if (((BigDec) exp.getCar()).eq(BigDec.ZERO))
          continue;
        output = output.append(new ConsCell('*', ConsType.OPERATOR)).append(key.clone());
        if (((BigDec) exp.getCar()).eq(BigDec.ONE))
          continue;
        output = output.append(new ConsCell('^', ConsType.OPERATOR)).append(exp.clone());
        continue;
      }
      //For anything else, stick the exponent in parentheses and append it
      output = output.append(new ConsCell('*', ConsType.OPERATOR)).append(key.clone()).append(new ConsCell('^', ConsType.OPERATOR)).append(new ConsCell(exp.clone(), ConsType.CONS_CELL));
    }
View Full Code Here

Examples of logisticspipes.utils.item.ItemIdentifierStack.clone()

    if(data.getDestinationUUID() == null) {
      ItemIdentifierStack stack = data.getItemIdentifierStack();
      ItemRoutingInformation result = getPipe().getQueuedForItemStack(stack);
      if(result != null) {
        data.setInformation(result);
        data.getInfo().setItem(stack.clone());
        blocked = data.input.getOpposite();
      }
    }
   
    ForgeDirection value;
View Full Code Here

Examples of lupos.datastructures.bindings.Bindings.clone()

        if (literal == null) {
          boolean added = this.cartesianProduct[operandID].add(binding);
          if(added || !isDuplicateEliminationEnabled()){
            // build the cartesian product
            for (final Bindings b2 : this.cartesianProduct[otherOperand]) {
              joinBindings(result, binding.clone(), b2);
            }
 
            for (final QueryResult qr : this.lba[otherOperand].values()) {
              for (final Bindings b2 : qr) {
                joinBindings(result, binding.clone(), b2);
View Full Code Here

Examples of math.Vector.clone()

   */
  public static Vector translateObject(Vector pos, Vector v, double m,
      Vector force, double timeDelta, Vector oldAcc) {   
    Vector acc = force.clone().scale(1 / m)
    v.add(oldAcc.add(acc).scale(0.5f * timeDelta));
    pos.add(acc.clone().scale(0.5f * timeDelta).add(v).scale(timeDelta));
    return oldAcc = acc;
  }

  /**
   * Rotates an object defined by its direction, rotation and momentum of
View Full Code Here

Examples of mekanism.api.Coord4D.clone()

        if(fluidTank.getFluid() == null || MekanismUtils.getFluid(worldObj, wrapper.xCoord, wrapper.yCoord, wrapper.zCoord).isFluidEqual(fluidTank.getFluid()))
        {
          if(take)
          {
            setEnergy(getEnergy() - Mekanism.electricPumpUsage);
            recurringNodes.add(wrapper.clone());
            fluidTank.fill(MekanismUtils.getFluid(worldObj, wrapper.xCoord, wrapper.yCoord, wrapper.zCoord), true);
            worldObj.setBlockToAir(wrapper.xCoord, wrapper.yCoord, wrapper.zCoord);
          }

          return true;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.vector.BlockVec3.clone()

                        if (!(b instanceof BlockAir) && b != null)
                        {
                            nextLayer.add(sideVec);
                            if (bStart instanceof BlockAir)
                            {
                                this.oneSSBlock = sideVec.clone();
                                bStart = b;
                            }
                            float m = 1.0F;
                            //Liquids have a mass of 1, stone, metal blocks etc will be heavier
                            if (!(b instanceof BlockLiquid))
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.