Examples of copyDataFrom()


Examples of net.minecraft.entity.Entity.copyDataFrom()

      minecraftserver.getConfigurationManager().transferEntityToWorld(e, j, worldserver, worldserver1, new TeleporterBedrock(worldserver));
      e.worldObj.theProfiler.endStartSection("reloading");
      Entity entity = EntityList.createEntityByName(EntityList.getEntityString(e), worldserver1);

      if (entity != null) {
        entity.copyDataFrom(e, true);

        if (j == 1 && par1 == 1) {
          ChunkCoordinates chunkcoordinates = worldserver1.getSpawnPoint();
          chunkcoordinates.posY = e.worldObj.getTopSolidOrLiquidBlock(chunkcoordinates.posX, chunkcoordinates.posZ);
          entity.setLocationAndAngles((double) chunkcoordinates.posX, (double) chunkcoordinates.posY, (double) chunkcoordinates.posZ, entity.rotationYaw, entity.rotationPitch);
View Full Code Here

Examples of net.minecraft.entity.Entity.copyDataFrom()

    result.add(newCart);

    Entity passenger = cart.riddenByEntity;
    if(passenger != null && !(passenger instanceof EntityPlayer)) {
      Entity newPas = EntityList.createEntityByName(EntityList.getEntityString(passenger), worldserver1);
      newPas.copyDataFrom(passenger, true);
      newPas.dimension = toDimension;
      newPas.setLocationAndAngles(toX + 0.5, toY, toZ + 0.5, cart.rotationYaw, cart.rotationPitch);
      newCart.riddenByEntity = newPas;
      newPas.ridingEntity = newCart;
      result.add(newPas);
View Full Code Here

Examples of net.minecraft.entity.Entity.copyDataFrom()

      Entity e = EntityList.createEntityByName(EntityList.getEntityString(entity), world);

      if(e != null)
      {
        e.copyDataFrom(entity, true);
        world.spawnEntityInWorld(e);
        teleporter.didTeleport.add(e);
      }

      entity.isDead = true;
View Full Code Here

Examples of net.minecraft.entity.Entity.copyDataFrom()

            h.field_146063_b += link.xOff;
            h.field_146064_c += link.yOff;
            h.field_146062_d += link.zOff;
          }

          newEntity.copyDataFrom( entity, true );
          newEntity.dimension = newWorld.provider.dimensionId;
          newEntity.forceSpawn = true;

          entity.isDead = true;
          entity = newEntity;
View Full Code Here

Examples of net.minecraft.entity.item.EntityItem.copyDataFrom()

            Item newItem = getEntityItem().getItem() == net.minecraft.init.Items.iron_ingot ? Itemss.ingotIronCompressed : Item.getItemFromBlock(Blockss.compressedIron);
            ItemStack newStack = new ItemStack(newItem, getEntityItem().stackSize, getEntityItem().getItemDamage());
            if(getEntityItem().stackSize >= 3) {
                newStack.stackSize = (int)(getEntityItem().stackSize * (rand.nextDouble() * Math.min(Config.configCompressedIngotLossRate * 0.02D, 0.2D) + (Math.max(0.9D, 1D - Config.configCompressedIngotLossRate * 0.01D) - Config.configCompressedIngotLossRate * 0.01D)));
            }
            compressedIngot.copyDataFrom(this, true);
            compressedIngot.setEntityItemStack(newStack);
            compressedIngot.delayBeforeCanPickup = delayBeforeCanPickup;
            worldObj.spawnEntityInWorld(compressedIngot);
            getEntityItem().stackSize = 0;
        }
View Full Code Here

Examples of org.apache.xindice.core.meta.MetaData.copyDataFrom()

                                      "Mismatch type of meta data for collection " + getCanonicalName());
            }

            MetaSystemCollection metacol = getMetaSystemCollection();
            MetaData current = metacol.getCollectionMeta(this);
            current.copyDataFrom(meta);
            metacol.setCollectionMeta(this, current);
        }
    }

    protected final void setCollectionRoot(File collectionRoot) {
View Full Code Here

Examples of org.apache.xindice.core.meta.MetaData.copyDataFrom()

            if (log.isInfoEnabled()) {
                log.info(debugHeader() + "Set document meta " + id);
            }
            MetaSystemCollection metacol = getMetaSystemCollection();
            MetaData current = metacol.getDocumentMeta(this, id);
            current.copyDataFrom(meta);
            metacol.setDocumentMeta(this, id, current);
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.xindice.core.meta.MetaData.copyDataFrom()

                                      "Mismatch type of meta data for collection " + getCanonicalName());
            }

            MetaSystemCollection metacol = getMetaSystemCollection();
            MetaData current = metacol.getCollectionMeta(this);
            current.copyDataFrom(meta);
            metacol.setCollectionMeta(this, current);
        }
    }

    protected final void setCollectionRoot(File collectionRoot) {
View Full Code Here

Examples of org.apache.xindice.core.meta.MetaData.copyDataFrom()

                if (log.isInfoEnabled()) {
                    log.info(debugHeader() + "Set document meta " + id);
                }
                MetaSystemCollection metacol = getMetaSystemCollection();
                MetaData current = metacol.getDocumentMeta(this, id);
                current.copyDataFrom(meta);
                metacol.setDocumentMeta(this, id, current);
            }
        }
    }
View Full Code Here

Examples of org.apache.xindice.core.meta.MetaData.copyDataFrom()

                                      "Mismatch type of meta data for collection " + getCanonicalName());
            }

            MetaSystemCollection metacol = getMetaSystemCollection();
            MetaData current = metacol.getCollectionMeta(this);
            current.copyDataFrom(meta);
            metacol.setCollectionMeta(this, current);
        }
    }

    /**
 
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.