Package net.minecraft.entity

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


    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

      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

            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

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.