Examples of IGateExpansion


Examples of buildcraft.api.gates.IGateExpansion

    try {
      NBTTagList expansionList = nbt.getTagList(NBT_TAG_EX, Constants.NBT.TAG_STRING);
      for (int i = 0; i < expansionList.tagCount(); i++) {
        String exTag = expansionList.getStringTagAt(i);
        IGateExpansion ex = GateExpansions.getExpansion(exTag);
        if (ex != null) {
          expansions.add(ex);
        }
      }
    } catch (RuntimeException error) {
View Full Code Here

Examples of buildcraft.api.gates.IGateExpansion

    }

    NBTTagList exList = nbt.getTagList("expansions", Constants.NBT.TAG_COMPOUND);
    for (int i = 0; i < exList.tagCount(); i++) {
      NBTTagCompound conNBT = exList.getCompoundTagAt(i);
      IGateExpansion ex = GateExpansions.getExpansion(conNBT.getString("type"));
      if (ex != null) {
        GateExpansionController con = ex.makeController(pipe.container);
        con.readFromNBT(conNBT.getCompoundTag("data"));
        gate.expansions.put(ex, con);
      }
    }
View Full Code Here

Examples of buildcraft.api.gates.IGateExpansion

      NBTTagCompound recipe = msg.getNBTValue();
      if (!recipe.hasKey("id") || !recipe.hasKey("expansion") || !recipe.hasKey("input")) {
        failed = true;
        return;
      }
      IGateExpansion exp = GateExpansions.getExpansion(recipe.getString("expansion"));
      ItemStack is = ItemStack.loadItemStackFromNBT(recipe.getCompoundTag("input"));
      if (exp == null || is == null) {
        failed = true;
        return;
      }
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.