Package buildcraft.api.statements

Examples of buildcraft.api.statements.IStatementParameter.writeToNBT()


          IStatementParameter parameter = StatementManager.createParameter(cpt.getString("kind"));
          parameter.readFromNBT(cpt);
         
          parameter = parameter.rotateLeft();
         
          parameter.writeToNBT(cpt);
          gateNBT.setTag("triggerParameters[" + i + "][" + j + "]", cpt);
        }
       
        if (gateNBT.hasKey("actionParameters[" + i + "][" + j + "]")) {
          NBTTagCompound cpt = gateNBT.getCompoundTag("actionParameters[" + i + "][" + j + "]");
View Full Code Here


          IStatementParameter parameter = StatementManager.createParameter(cpt.getString("kind"));
          parameter.readFromNBT(cpt);
         
          parameter = parameter.rotateLeft();
         
          parameter.writeToNBT(cpt);
          gateNBT.setTag("actionParameters[" + i + "][" + j + "]", cpt);
        }
      }
    }
View Full Code Here

    if (parameter == null) {
      data.writeBoolean(false);
    } else {
      NBTTagCompound cpt = new NBTTagCompound();
      parameter.writeToNBT(cpt);
     
      data.writeBoolean(true);
      Utils.writeUTF(data, parameter.getUniqueTag());
      Utils.writeNBT(data, cpt);
    }
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.