Examples of intZ()


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

                  }
                }

                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.intZ()

                  /*
                   * 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.intZ()

          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.intZ()

    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.intZ()

    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

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

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

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

    Vector3 projectorPos = new Vector3((TileEntity) projector);
    projectorPos.add(projector.getTranslation());

    Vector3 relativePosition = position.clone().subtract(projectorPos);
View Full Code Here

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

      {
        int blockId = position.getBlockID(world);

        if (Block.blocksList[blockId] != null)
        {
          Chunk chunk = world.getChunkFromBlockCoords(position.intX(), position.intZ());

          if (chunk != null && chunk.isChunkLoaded && (MFFSHelper.hasPermission(world, position, Action.RIGHT_CLICK_BLOCK, entityPlayer) || MFFSHelper.hasPermission(world, position, Permission.REMOTE_CONTROL, entityPlayer)))
          {
            float requiredEnergy = (float) Vector3.distance(new Vector3(entityPlayer), position) * (FluidContainerRegistry.BUCKET_VOLUME / 100);
            int receivedEnergy = 0;
View Full Code Here

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

              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

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

    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

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

    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
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.