Package erogenousbeef.bigreactors.api.data

Examples of erogenousbeef.bigreactors.api.data.FluidToReactantMapping


  public static void registerFluid(FluidStack fluidStack, String reactantName) {
    if(!_reactants.containsKey(reactantName)) {
      throw new IllegalArgumentException("Unknown reactantName " + reactantName);
    }

    FluidToReactantMapping mapping = new FluidToReactantMapping(fluidStack, reactantName);
    SourceProductMapping reverseMapping = mapping.getReverse();

    _fluidToReactant.put(mapping.getSource(), mapping);
    mapReactant(reverseMapping.getSource(), reverseMapping, _reactantToFluid);
  }
View Full Code Here


  public static void registerFluid(Fluid fluid, String reactantName) {
    if(!_reactants.containsKey(reactantName)) {
      throw new IllegalArgumentException("Unknown reactantName " + reactantName);
    }

    FluidToReactantMapping mapping = new FluidToReactantMapping(fluid, reactantName);
    SourceProductMapping reverseMapping = mapping.getReverse();

    _fluidToReactant.put(mapping.getSource(), mapping);
    mapReactant(reverseMapping.getSource(), reverseMapping, _reactantToFluid);
  }
View Full Code Here

TOP

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

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.