Package erogenousbeef.core.common

Examples of erogenousbeef.core.common.CoordTriplet.copy()


        // Get list of normals
        int bladeLength;
        ForgeDirection bladeDir;
        for(int bladeIdx = 0; bladeIdx < dirsToCheck.length; bladeIdx++) {
          bladeDir = dirsToCheck[bladeIdx];
          bladeCoord.copy(currentCoord);
          bladeCoord.translate(bladeDir);
          bladeLength = 0;
          while(worldObj.getBlock(bladeCoord.x, bladeCoord.y, bladeCoord.z) == BigReactors.blockTurbineRotorPart && bladeLength < 32) {
            bladeLength++;
            bladeCoord.translate(bladeDir);
View Full Code Here


        hasBlades[i] = rotorInfo.bladeLengths[rotorIdx][i] > 0;
      }

      RotorSimpleRenderer.renderRotorShaft(BigReactors.blockTurbineRotorPart, renderBlocks, BlockTurbineRotorPart.METADATA_SHAFT, rotorDir, hasBlades, currentRotorCoord.x, currentRotorCoord.y, currentRotorCoord.z, false);
      for(int bladeIdx = 0; bladeIdx < bladeDirs.length; bladeIdx++) {
        bladeCoord.copy(currentRotorCoord);
        int bladeLen = 0;
        bladeCoord.translate(bladeDirs[bladeIdx]);
        while(bladeLen < rotorInfo.bladeLengths[rotorIdx][bladeIdx]) {
          RotorSimpleRenderer.renderBlade(renderBlocks, bladeCoord.x, bladeCoord.y, bladeCoord.z, BigReactors.blockTurbineRotorPart, BlockTurbineRotorPart.METADATA_BLADE, rotorInfo.rotorDirection);
          bladeLen++;
View Full Code Here

     
      // Now move out in the 4 rotor normals, looking for blades and coils
      CoordTriplet checkCoord = rotorCoord.copy();
      boolean encounteredBlades = false;
      for(ForgeDirection bladeDir : bladeDirections) {
        checkCoord.copy(rotorCoord);
        boolean foundABlade = false;
        checkCoord.translate(bladeDir);
       
        // If we find 1 blade, we can keep moving along the normal to find more blades
        while(rotorBlades.remove(checkCoord)) {
View Full Code Here

           
            // Check the two coil spots in the 'corners', which are permitted if they're connected to the main rotor coil somehow
            CoordTriplet coilCheck = checkCoord.copy();
            coilCheck.translate(bladeDir.getRotation(rotorDir));
            foundCoils.remove(coilCheck);
            coilCheck.copy(checkCoord);
            coilCheck.translate(bladeDir.getRotation(rotorDir.getOpposite()));
            foundCoils.remove(coilCheck);
          }
          // Else: It must have been air.
        }
View Full Code Here

    for(ForgeDirection dir : StaticUtils.CardinalDirections) {
      radPacket.hardness = radHardness;
      radPacket.intensity = effectiveRadIntensity;
      int ttl = 4;
      currentCoord.copy(originCoord);

      while(ttl > 0 && radPacket.intensity > 0.0001f) {
        ttl--;
        currentCoord.translate(dir);
        performIrradiation(world, data, radPacket, currentCoord.x, currentCoord.y, currentCoord.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.