Examples of intX()


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

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

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

    int xStretch = posScale.intX() + negScale.intX();
    int yStretch = posScale.intY() + negScale.intY();
    int zStretch = posScale.intZ() + negScale.intZ();
    Vector3 translation = new Vector3(0, -0.4, 0);

    for (float x = -xStretch; x <= xStretch; x++)
View Full Code Here

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

  public boolean isInField(IFieldInteraction projector, Vector3 position)
  {
    Vector3 posScale = projector.getPositiveScale().clone();
    Vector3 negScale = projector.getNegativeScale().clone();

    int xStretch = posScale.intX() + negScale.intX();
    int yStretch = posScale.intY() + negScale.intY();
    int zStretch = posScale.intZ() + negScale.intZ();

    Vector3 projectorPos = new Vector3((TileEntity) projector);
    projectorPos.add(projector.getTranslation());
View Full Code Here

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

    Set<Vector3> fieldBlocks = new HashSet<Vector3>();
    ForgeDirection direction = projector.getDirection();
    Vector3 posScale = projector.getPositiveScale();
    Vector3 negScale = projector.getNegativeScale();

    for (float x = -negScale.intX(); x <= posScale.intX(); x += 0.5f)
    {
      for (float z = -negScale.intZ(); z <= posScale.intZ(); z += 0.5f)
      {
        for (float y = -negScale.intY(); y <= posScale.intY(); y += 0.5f)
        {
View Full Code Here

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

          {
            fieldBlocks.add(new Vector3(x, y, z));
            continue;
          }

          if (!(direction == ForgeDirection.WEST || direction == ForgeDirection.EAST) && (x == -negScale.intX() || x == posScale.intX()))
          {
            fieldBlocks.add(new Vector3(x, y, z));
            continue;
          }
        }
View Full Code Here

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

              else
              {
                ModularForceFieldSystem.proxy.renderHologramOrbit(this, this.worldObj, anchorPosition, vector, 0.1f, 1, 0, animationTime, 30f);
              }

              if (targetPosition.world != null && targetPosition.world.getChunkProvider().chunkExists(targetPosition.intX(), targetPosition.intZ()))
              {
                // Render hologram for destination position
                Vector3 destination = vector.clone().difference(anchorPosition).add(targetPosition);

                if (isPreview)
View Full Code Here

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

      if (Block.blocksList[blockId] != null)
      {
        list.add(LanguageUtility.getLocal("info.item.linkedWith") + " " + Block.blocksList[blockId].getLocalizedName());
      }

      list.add(vec.intX() + ", " + vec.intY() + ", " + vec.intZ());
      list.add(LanguageUtility.getLocal("info.item.dimension") + " '" + vec.world.provider.getDimensionName() + "'");
    }
    else
    {
      list.add(LanguageUtility.getLocal("info.item.notLinked"));
View Full Code Here

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

      if (Block.blocksList[blockId] != null)
      {
        list.add(LanguageUtility.getLocal("info.item.linkedWith") + " " + Block.blocksList[blockId].getLocalizedName());
      }

      list.add(vec.intX() + ", " + vec.intY() + ", " + vec.intZ());
      list.add(LanguageUtility.getLocal("info.item.dimension") + " " + vec.world.provider.getDimensionName());
    }
    else
    {
      list.add(LanguageUtility.getLocal("info.item.notLinked"));
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.