Package erogenousbeef.bigreactors.api.data

Examples of erogenousbeef.bigreactors.api.data.ReactorReaction


  public static void register(String sourceName, String productName) {
    if(_reactions.containsKey(sourceName)) {
      BRLog.warning("Overwriting %s => %s reaction mapping! Someone may be fiddling with Big Reactors game data!", sourceName, productName);
    }
   
    ReactorReaction mapping = new ReactorReaction(sourceName, productName);
    _reactions.put(sourceName, mapping);
  }
View Full Code Here


  public static void register(String sourceName, String productName, float reactivity, float fissionRate) {
    if(_reactions.containsKey(sourceName)) {
      BRLog.warning("Overwriting %s => %s reaction mapping! Someone may be fiddling with Big Reactors game data!", sourceName, productName);
    }
   
    ReactorReaction mapping = new ReactorReaction(sourceName, productName, reactivity, fissionRate);
    _reactions.put(sourceName, mapping);
  }
View Full Code Here

        // If there's already waste, just keep on producing the same type.
        this.addWaste(fuelToConvert);
      }
      else {
        // Create waste type from registry
        ReactorReaction reaction = ReactorConversions.get(fuelType);
        String wasteType = reaction == null ? null : reaction.getProduct();

        if(wasteType == null) {
          BRLog.warning("Could not locate waste for reaction of fuel type " + fuelType + "; using cyanite");
          wasteType = StandardReactants.cyanite;
        }
View Full Code Here

    }
  }

  public float getFuelReactivity() {
    String reactant = getFuelType();
    ReactorReaction reaction = ReactorConversions.get(reactant);
    if(reaction == null) {
      BRLog.warning("Could not locate reaction data for reactant type " + reactant + "; using default value for reactivity");
      return ReactorReaction.standardReactivity;
    }
    else {
      return reaction.getReactivity();
    }
  }
View Full Code Here

TOP

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

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.