Package buildcraft.api.blueprints

Examples of buildcraft.api.blueprints.SchematicEntity


      return null;
    }

    try {
      SchematicConstructor c = schematicEntities.get(entityClass);
      SchematicEntity s = (SchematicEntity) c.newInstance();
      s.entity = entityClass;
      return s;
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    } catch (IllegalArgumentException e) {
View Full Code Here


    for (Object o : context.world().loadedEntityList) {
      Entity e = (Entity) o;

      if (context.surroundingBox().contains(e.posX, e.posY, e.posZ)) {
        SchematicEntity s = SchematicRegistry.INSTANCE.createSchematicEntity(e.getClass());

        if (s != null) {
          s.readFromWorld(context, e);
          entities.add(s);
        }
      }
    }
  }
View Full Code Here

          entity = null;
          isComplete = false;
        }

        if (entity != null) {
          SchematicEntity s = SchematicRegistry.INSTANCE.createSchematicEntity(entity);
          s.readSchematicFromNBT(cpt, mapping);
          s.idsToWorld(mapping);
          entities.add(s);
        } else {
          isComplete = false;
        }
      }
View Full Code Here

  @Override
  protected SchematicEntity loadSchematicFromWorldNBT(NBTTagCompound nbt, MappingRegistry registry)
      throws MappingNotFoundException {
    int entityId = nbt.getInteger("entityId");
    SchematicEntity s = SchematicRegistry.INSTANCE.createSchematicEntity(registry.getEntityForId(entityId));

    if (s != null) {
      s.readSchematicFromNBT(nbt, registry);
    } else {
      return null;
    }

    return s;
View Full Code Here

TOP

Related Classes of buildcraft.api.blueprints.SchematicEntity

Copyright © 2018 www.massapicom. 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.