Package buildcraft.core.builders

Examples of buildcraft.core.builders.BuildingItem


      initialized = true;
    }

    if (slot != null) {
      slot.built = true;
      BuildingItem i = new BuildingItem();
      i.origin = new Position(x, y, z);
      i.destination = slot.getDestination();
      i.slotToBuild = slot;
      i.context = getContext();
      i.setStacksToDisplay(slot.getStacksToDisplay());
      builder.addAndLaunchBuildingItem(i);

      return true;
    }
View Full Code Here


    NBTTagList buildingList = nbt
        .getTagList("buildersInAction",
            Constants.NBT.TAG_COMPOUND);

    for (int i = 0; i < buildingList.tagCount(); ++i) {
      BuildingItem item = new BuildingItem();

      try {
        item.readFromNBT(buildingList.getCompoundTagAt(i));
        item.context = getContext();
        builder.getBuilders().add(item);
      } catch (MappingNotFoundException e) {
        BCLog.logger.log(Level.WARN, "can't load building item", e);
      }
View Full Code Here

  @Override
  public void updateEntity() {
    super.updateEntity();

    BuildingItem toRemove = null;

    for (BuildingItem i : buildersInAction) {
      i.update();

      if (i.isDone) {
View Full Code Here

TOP

Related Classes of buildcraft.core.builders.BuildingItem

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.