Package erogenousbeef.bigreactors.api.data

Examples of erogenousbeef.bigreactors.api.data.ReactantData


   
    if(_reactants.containsKey(name)) {
      BRLog.warning("Overwriting data for reactant %s - someone may be altering BR game data or have duplicate reactant names!", name);
    }
   
    ReactantData data = new ReactantData(name, ReactantData.s_Types[type], color);
    _reactants.put(name, data);
  }
View Full Code Here


   * @return
   */
  public static boolean isFuel(String name) {
    if(name == null) { return false; }
    else {
      ReactantData data = getReactant(name);
      return data != null && data.isFuel();
    }
  }
View Full Code Here

  }
 
  public static boolean isWaste(String name) {
    if(name == null) { return false; }
    else {
      ReactantData data = getReactant(name);
      return data != null && data.isWaste();
    }
  }
View Full Code Here

                  red = green = blue = 1f;

              iconSide = BigReactors.fluidFuelColumn.getFlowingIcon();
              iconBottom = BigReactors.fluidFuelColumn.getStillIcon();

              ReactantData fuelData = Reactants.getReactant(reactor.getFuelType());
              ReactantData wasteData = Reactants.getReactant(reactor.getWasteType());
                 
              int fuelColor = fuelData != null ? fuelData.getColor() : StandardReactants.colorYellorium;
              int wasteColor = wasteData != null ? wasteData.getColor() : StandardReactants.colorCyanite;
             
                if(fuelAmount == 0) {
                    red = unpackR(wasteColor);
                    green = unpackG(wasteColor);
                    blue = unpackB(wasteColor);
View Full Code Here

TOP

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

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.