Package erogenousbeef.bigreactors.api.data

Examples of erogenousbeef.bigreactors.api.data.OreDictToReactantMapping


    }

    SourceProductMapping firstMapping = null;

    for(String name : oreDictNames) {
      OreDictToReactantMapping mapping = new OreDictToReactantMapping(name, reactantName);
      SourceProductMapping reverseMapping = mapping.getReverse();
      _solidToReactant.put(mapping.getSource(), mapping);
      mapReactant(reverseMapping.getSource(), reverseMapping, _reactantToSolid);

      if(firstMapping == null) { firstMapping = mapping; }
    }
   
View Full Code Here


    }

    SourceProductMapping firstMapping = null;

    for(String name : oreDictNames) {
      OreDictToReactantMapping mapping = new OreDictToReactantMapping(name, reactantName, reactantQty);
      SourceProductMapping reverseMapping = mapping.getReverse();
      _solidToReactant.put(mapping.getSource(), mapping);
      mapReactant(reverseMapping.getSource(), reverseMapping, _reactantToSolid);

      if(firstMapping == null) { firstMapping = mapping; }
    }
   
View Full Code Here

  public static SourceProductMapping registerSolid(String oreDictName, String reactantName, int reactantAmount) {
    if(!_reactants.containsKey(reactantName)) {
      throw new IllegalArgumentException("Unknown reactantName " + reactantName);
    }
   
    OreDictToReactantMapping mapping = new OreDictToReactantMapping(oreDictName, reactantName, reactantAmount);
   
    _solidToReactant.put(mapping.getSource(), mapping);
   
    SourceProductMapping reverseMapping = mapping.getReverse();
    mapReactant(reverseMapping.getSource(), reverseMapping, _reactantToSolid);
    return mapping;
  }
View Full Code Here

  public static SourceProductMapping registerSolid(String oreDictName, String reactantName) {
    if(!_reactants.containsKey(reactantName)) {
      throw new IllegalArgumentException("Unknown reactantName " + reactantName);
    }
   
    OreDictToReactantMapping mapping = new OreDictToReactantMapping(oreDictName, reactantName);
    SourceProductMapping reverseMapping = mapping.getReverse();
   
    _solidToReactant.put(mapping.getSource(), mapping);
    mapReactant(reverseMapping.getSource(), reverseMapping, _reactantToSolid);
    return mapping;
  }
View Full Code Here

TOP

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

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.