Package universalelectricity.api.vector

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


    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


                  }
                }

                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

                  /*
                   * 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

          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

    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

    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

              if (receivedEnergy >= requiredEnergy)
              {
                try
                {
                  Block.blocksList[blockId].onBlockActivated(world, position.intX(), position.intY(), position.intZ(), entityPlayer, 0, 0, 0, 0);
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
View Full Code Here

    NBTTagCompound nbt = NBTUtility.getNBTTagCompound(itemStack);

    list.add(LanguageUtility.getLocal("info.modeCustom.mode") + " " + (nbt.getBoolean(NBT_MODE) ? LanguageUtility.getLocal("info.modeCustom.substraction") : LanguageUtility.getLocal("info.modeCustom.additive")));

    Vector3 point1 = new Vector3(nbt.getCompoundTag(NBT_POINT_1));
    list.add(LanguageUtility.getLocal("info.modeCustom.point1") + " " + point1.intX() + ", " + point1.intY() + ", " + point1.intZ());

    Vector3 point2 = new Vector3(nbt.getCompoundTag(NBT_POINT_2));
    list.add(LanguageUtility.getLocal("info.modeCustom.point2") + " " + point2.intX() + ", " + point2.intY() + ", " + point2.intZ());

    int modeID = nbt.getInteger(NBT_ID);
View Full Code Here

    Vector3 point1 = new Vector3(nbt.getCompoundTag(NBT_POINT_1));
    list.add(LanguageUtility.getLocal("info.modeCustom.point1") + " " + point1.intX() + ", " + point1.intY() + ", " + point1.intZ());

    Vector3 point2 = new Vector3(nbt.getCompoundTag(NBT_POINT_2));
    list.add(LanguageUtility.getLocal("info.modeCustom.point2") + " " + point2.intX() + ", " + point2.intY() + ", " + point2.intZ());

    int modeID = nbt.getInteger(NBT_ID);

    if (modeID > 0)
    {
View Full Code Here

                list = new NBTTagList();
              }

              for (int x = minPoint.intX(); x <= maxPoint.intX(); x++)
              {
                for (int y = minPoint.intY(); y <= maxPoint.intY(); y++)
                {
                  for (int z = minPoint.intZ(); z <= maxPoint.intZ(); z++)
                  {
                    Vector3 position = new Vector3(x, y, z);
                    Vector3 targetCheck = midPoint.clone().translate(position);
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.