Package appeng.api.util

Examples of appeng.api.util.DimensionalCoord


  }

  @Override
  public DimensionalCoord getLocation()
  {
    return new DimensionalCoord( this );
  }
View Full Code Here


  }

  @Override
  public DimensionalCoord getLocation()
  {
    return new DimensionalCoord( tile );
  }
View Full Code Here

  private boolean testWap(IWirelessAccessPoint wap)
  {
    double rangeLimit = wap.getRange();
    rangeLimit *= rangeLimit;

    DimensionalCoord dc = wap.getLocation();

    if ( dc.getWorld() == myPlayer.worldObj )
    {
      double offX = dc.x - myPlayer.posX;
      double offY = dc.y - myPlayer.posY;
      double offZ = dc.z - myPlayer.posZ;

View Full Code Here

    crashreportcategory.addCrashSection( "MaxTickRate", request.maxTickRate );
    crashreportcategory.addCrashSection( "MachineType", gt.getClass().getName() );
    crashreportcategory.addCrashSection( "GridBlockType", node.getGridBlock().getClass().getName() );
    crashreportcategory.addCrashSection( "ConnectedSides", node.getConnectedSides() );
   
    DimensionalCoord dc = node.getGridBlock().getLocation();
    if ( dc != null )
      crashreportcategory.addCrashSection( "Location", dc );
  }
View Full Code Here

  }

  @Override
  public IAECluster createCluster(World w, WorldCoord min, WorldCoord max)
  {
    return new SpatialPylonCluster( new DimensionalCoord( w, min.x, min.y, min.z ), new DimensionalCoord( w, max.x, max.y, max.z ) );
  }
View Full Code Here

        int x = pos.blockX + side.offsetX;
        int y = pos.blockY + side.offsetY;
        int z = pos.blockZ + side.offsetZ;

        if ( !Platform.hasPermissions( new DimensionalCoord( w, x, y, z ), p ) )
          return;

        Block whatsThere = w.getBlock( x, y, z );
        if ( whatsThere.isReplaceable( w, x, y, z ) && w.isAirBlock( x, y, z ) )
        {
View Full Code Here

            // pos.blockX, pos.blockY, pos.blockZ );

            float hardness = b.getBlockHardness( w, pos.blockX, pos.blockY, pos.blockZ ) * 9.0f;
            if ( hardness >= 0.0 )
            {
              if ( penetration > hardness && Platform.hasPermissions( new DimensionalCoord( w, pos.blockX, pos.blockY, pos.blockZ ), p ) )
              {
                hasDestroyedSomething = true;
                penetration -= hardness;
                penetration *= 0.60;
                w.func_147480_a( pos.blockX, pos.blockY, pos.blockZ, true );
View Full Code Here

  }

  @Override
  public DimensionalCoord getLocation()
  {
    return new DimensionalCoord( this );
  }
View Full Code Here

        int y = target.blockY;
        int z = target.blockZ;

        if ( w.getBlock( x, y, z ).getMaterial() == Material.lava || w.getBlock( x, y, z ).getMaterial() == Material.water )
        {
          if ( Platform.hasPermissions( new DimensionalCoord( w, x, y, z ), p ) )
          {
            onItemUse( item, p, w, x, y, z, 0, 0.0F, 0.0F, 0.0F );
          }
        }
      }
View Full Code Here

      {
        controllerState = ControllerState.CONTROLLER_CONFLICT;
        return;
      }

      DimensionalCoord dc = startingNode.getGridBlock().getLocation();
      ControllerValidator cv = new ControllerValidator( dc.x, dc.y, dc.z );

      startingNode.beginVisit( cv );

      if ( cv.isValid && cv.found == controllers.size() )
View Full Code Here

TOP

Related Classes of appeng.api.util.DimensionalCoord

Copyright © 2018 www.massapicom. 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.