Package erogenousbeef.bigreactors.api.data

Examples of erogenousbeef.bigreactors.api.data.ReactorInteriorData


   * @param moderation  How well this material moderates radiation. This is a divisor; should not be below 1.
   */
  public static void registerBlock(String oreDictName, float absorption, float heatEfficiency, float moderation, float heatConductivity) {
    if(_reactorModeratorBlocks.containsKey(oreDictName)) {
      BRLog.warning("Overriding existing radiation moderator block data for oredict name <%s>", oreDictName);
      ReactorInteriorData data = _reactorModeratorBlocks.get(oreDictName);
      data.absorption = absorption;
      data.heatEfficiency = heatEfficiency;
      data.moderation = moderation;
    }
    else {
      _reactorModeratorBlocks.put(oreDictName, new ReactorInteriorData(absorption, heatEfficiency, moderation, heatConductivity));
    }
  }
View Full Code Here


   * @param moderation  How well this material moderates radiation. This is a divisor; should not be below 1.
   */
  public static void registerFluid(String fluidName, float absorption, float heatEfficiency, float moderation, float heatConductivity) {
    if(_reactorModeratorFluids.containsKey(fluidName)) {
      BRLog.warning("Overriding existing radiation moderator fluid data for fluid name <%s>", fluidName);
      ReactorInteriorData data = _reactorModeratorFluids.get(fluidName);
      data.absorption = absorption;
      data.heatEfficiency = heatEfficiency;
      data.moderation = moderation;
    }
    else {
      _reactorModeratorFluids.put(fluidName, new ReactorInteriorData(absorption, heatEfficiency, moderation, heatConductivity));
    }
  }
View Full Code Here

  private void moderateByAir(RadiationData data, RadiationPacket radiation) {
    applyModerationFactors(data, radiation, airData);
  }
 
  private void moderateByBlock(RadiationData data, RadiationPacket radiation, Block block, int metadata) {
    ReactorInteriorData moderatorData = null;

    if(block == Blocks.iron_block) {
      moderatorData = ReactorInterior.getBlockData("blockIron");
    }
    else if(block == Blocks.gold_block) {
View Full Code Here

 
  private void moderateByFluid(RadiationData data, RadiationPacket radiation, Fluid fluid) {
   
    float absorption, heatEfficiency, moderation;

    ReactorInteriorData moderatorData = ReactorInterior.getFluidData(fluid.getName());
   
    if(moderatorData == null) {
      moderatorData = waterData;
    }
View Full Code Here

    return heatTransferRate;
  }
 
  private float getConductivityFromBlock(Block block, int metadata) {
    ReactorInteriorData interiorData = null;
   
    if(block == Blocks.iron_block) {
      interiorData = ReactorInterior.getBlockData("blockIron");
    }
    else if(block == Blocks.gold_block) {
View Full Code Here

TOP

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

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.