Package erogenousbeef.bigreactors.api.data

Examples of erogenousbeef.bigreactors.api.data.CoilPartData


   * @param efficiency  Efficiency of the block. 1.0 == iron, 2.0 == gold, etc.
   * @param bonus      Energy bonus of the block, if any. Normally 1.0. This is an exponential term and should only be used for EXTREMELY rare blocks!
   */
  public static void registerBlock(String oreDictName, float efficiency, float bonus, float extractionRate) {
    if(_blocks.containsKey(oreDictName)) {
      CoilPartData data = _blocks.get(oreDictName);
      BRLog.warning("Overriding existing coil part data for oredict name <%s>, original values: eff %.2f / bonus %.2f, new values: eff %.2f / bonus %.2f", oreDictName, data.efficiency, data.bonus, efficiency, bonus);
      data.efficiency = efficiency;
      data.bonus = bonus;
    }
    else {
      _blocks.put(oreDictName, new CoilPartData(efficiency, bonus, extractionRate));
    }
  }
View Full Code Here


    for(int x = minInterior.x; x <= maxInterior.x; x++) {
      for(int y = minInterior.y; y <= maxInterior.y; y++) {
        for(int z = minInterior.z; z <= maxInterior.z; z++) {
          Block block = worldObj.getBlock(x, y, z);
          int metadata = worldObj.getBlockMetadata(x, y, z);
          CoilPartData coilData = null;

          if(block == BigReactors.blockTurbineRotorPart) {
            rotorMass += BigReactors.blockTurbineRotorPart.getRotorMass(block, metadata);
            if(BlockTurbineRotorPart.isRotorBlade(metadata)) {
              bladeSurfaceArea += 1;
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.api.data.CoilPartData

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.