Examples of intX()


Examples of universalelectricity.api.vector.Vector2.intX()

      Vector2 translation = new Vector2(9, 5);
      int xSize = 4;
      int ySize = 4;

      int topLX = translation.intX();
      int topRX = translation.intX() + xSize;
      int botLX = translation.intX();
      int botRX = translation.intX() + xSize;

      int topLY = translation.intY();
      int topRY = translation.intY();
View Full Code Here

Examples of universalelectricity.api.vector.Vector2.intX()

      int xSize = 4;
      int ySize = 4;

      int topLX = translation.intX();
      int topRX = translation.intX() + xSize;
      int botLX = translation.intX();
      int botRX = translation.intX() + xSize;

      int topLY = translation.intY();
      int topRY = translation.intY();
      int botLY = translation.intY() + ySize;
View Full Code Here

Examples of universalelectricity.api.vector.Vector2.intX()

      int ySize = 4;

      int topLX = translation.intX();
      int topRX = translation.intX() + xSize;
      int botLX = translation.intX();
      int botRX = translation.intX() + xSize;

      int topLY = translation.intY();
      int topRY = translation.intY();
      int botLY = translation.intY() + ySize;
      int botRY = translation.intY() + ySize;
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

    Vector3 negativeScale = new Vector3(this).translate(this.getTranslation()).subtract(this.getNegativeScale());

    Vector3 minScale = positiveScale.min(negativeScale);
    Vector3 maxScale = positiveScale.max(negativeScale);

    return AxisAlignedBB.getAABBPool().getAABB(minScale.intX(), minScale.intY(), minScale.intZ(), maxScale.intX(), maxScale.intY(), maxScale.intZ());
  }

  /**
   * Gets the position in which the manipulator will try to translate the field into.
   *
 
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

            /**
             * Prevents the force field projector from disintegrating itself.
             */
            if (block != ModularForceFieldSystem.blockForceField && !vector.equals(new Vector3(this)))
            {
              if (this.worldObj.getChunkFromBlockCoords(vector.intX(), vector.intZ()).isChunkLoaded)
              {
                constructionCount++;

                for (IModule module : getModules(getModuleSlots()))
                {
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

                  }
                }

                if (!this.worldObj.isRemote)
                {
                  this.worldObj.setBlock(vector.intX(), vector.intY(), vector.intZ(), ModularForceFieldSystem.blockForceField.blockID, 0, 2);
                }

                this.forceFields.add(vector);

                  /*
 
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

                  /*
                   * Sets the controlling projector of the force field block to
                   * this one.
                   */
                TileEntity tileEntity = this.worldObj.getBlockTileEntity(vector.intX(), vector.intY(), vector.intZ());

                if (tileEntity instanceof TileForceField)
                {
                  ((TileForceField) tileEntity).setProjector(new Vector3(this));
                }
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

          Vector3 vector = it.next();
          Block block = Block.blocksList[vector.getBlockID(this.worldObj)];

          if (block == ModularForceFieldSystem.blockForceField)
          {
            this.worldObj.setBlock(vector.intX(), vector.intY(), vector.intZ(), 0, 0, 3);
          }
        }
      }
    }
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

    final Set<Vector3> fieldBlocks = new HashSet<Vector3>();

    final Vector3 posScale = projector.getPositiveScale();
    final Vector3 negScale = projector.getNegativeScale();

    int radius = (posScale.intX() + negScale.intX() + posScale.intZ() + negScale.intZ()) / 2;
    int height = posScale.intY() + negScale.intY();

    for (float x = -radius; x <= radius; x += 1)
    {
      for (float z = -radius; z <= radius; z += 1)
View Full Code Here

Examples of universalelectricity.api.vector.Vector3.intX()

    final Vector3 translation = projector.getTranslation();

    final Vector3 posScale = projector.getPositiveScale();
    final Vector3 negScale = projector.getNegativeScale();

    int radius = (posScale.intX() + negScale.intX() + posScale.intZ() + negScale.intZ()) / 2;
    int height = posScale.intY() + negScale.intY();

    for (int x = -radius; x <= radius; x++)
    {
      for (int z = -radius; z <= radius; z++)
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.