Examples of rotateLeft()


Examples of appeng.parts.CableBusContainer.rotateLeft()

  public void rotateLeft(IBuilderContext context)
  {
    CableBusContainer cbc = new CableBusContainer( this );
    cbc.readFromNBT( tileNBT );

    cbc.rotateLeft();

    tileNBT = new NBTTagCompound();
    cbc.writeToNBT( tileNBT );
  }
View Full Code Here

Examples of buildcraft.api.statements.IStatement.rotateLeft()

        gateNBT.setString("trigger[" + i + "]", t.getUniqueTag());
      }

      if (gateNBT.hasKey("action[" + i + "]")) {
        IStatement a = StatementManager.statements.get(gateNBT.getString("action[" + i + "]"));
        a = a.rotateLeft();
        gateNBT.setString("action[" + i + "]", a.getUniqueTag());
      }
     
      for (int j = 0; j < Gate.MAX_PARAMETERS; ++j) {
        if (gateNBT.hasKey("triggerParameters[" + i + "][" + j + "]")) {
View Full Code Here

Examples of buildcraft.api.statements.IStatement.rotateLeft()

  private void rotateGateLeft(NBTTagCompound gateNBT) {
    for (int i = 0; i < Gate.MAX_STATEMENTS; ++i) {
      if (gateNBT.hasKey("trigger[" + i + "]")) {
        IStatement t = StatementManager.statements.get(gateNBT.getString("trigger[" + i + "]"));
        t = t.rotateLeft();
        gateNBT.setString("trigger[" + i + "]", t.getUniqueTag());
      }

      if (gateNBT.hasKey("action[" + i + "]")) {
        IStatement a = StatementManager.statements.get(gateNBT.getString("action[" + i + "]"));
View Full Code Here

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

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

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

        if (gateNBT.hasKey("actionParameters[" + i + "][" + j + "]")) {
          NBTTagCompound cpt = gateNBT.getCompoundTag("actionParameters[" + i + "][" + j + "]");
          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

Examples of buildcraft.transport.TileGenericPipe.SideProperties.rotateLeft()

  @Override
  public void rotateLeft(IBuilderContext context) {
    SideProperties props = new SideProperties ();

    props.readFromNBT(tileNBT);
    props.rotateLeft();
    props.writeToNBT(tileNBT);

    Item pipeItem = Item.getItemById(tileNBT.getInteger("pipeId"));

    if (BptPipeExtension.contains(pipeItem)) {
View Full Code Here

Examples of ij.process.ImageProcessor.rotateLeft()

        ImagePlus ip = ((ImageJImage)i).getImagePlus();
        ImageProcessor processor = ip.getProcessor();
        if (clockwise) {
            processor = processor.rotateRight();
        } else {
            processor = processor.rotateLeft();
        }
        ip.setProcessor(null, processor);

        return ImageProcess.save(((ImageJImage) i).getImageType(), ip, outputFile);
    }
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.