当前位置: 首页>>代码示例>>Java>>正文


Java ReactorInterior类代码示例

本文整理汇总了Java中erogenousbeef.bigreactors.api.registry.ReactorInterior的典型用法代码示例。如果您正苦于以下问题:Java ReactorInterior类的具体用法?Java ReactorInterior怎么用?Java ReactorInterior使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ReactorInterior类属于erogenousbeef.bigreactors.api.registry包,在下文中一共展示了ReactorInterior类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getConductivityFromBlock

import erogenousbeef.bigreactors.api.registry.ReactorInterior; //导入依赖的package包/类
private float getConductivityFromBlock(String block) {
  ReactorInteriorData interiorData = null;
  String[] parts = block.split(":");
  if (parts[0].equals("fluid")) {
    interiorData = ReactorInterior.getFluidData(parts[1]);

  } else {
    interiorData = ReactorInterior.getBlockData(parts[1]);
  }

  if (interiorData == null) {
    interiorData = RadiationHelper.airData;
  }

  return interiorData.heatConductivity;
}
 
开发者ID:sidoh,项目名称:reactor_simulator,代码行数:17,代码来源:TileEntityReactorFuelRodSimulator.java

示例2: init

import erogenousbeef.bigreactors.api.registry.ReactorInterior; //导入依赖的package包/类
@EventHandler
public void init(FMLPostInitializationEvent event)
{
    ReactorInterior.registerFluid("ic2coolant", 0.66F, 0.95F, 6F, IHeatEntity.conductivityDiamond);
    ReactorInterior.registerFluid("ic2uu_matter", 0.9F, 0.99F, 18F, IHeatEntity.conductivityDiamond);

    Reactants.registerReactant("uFuel", 0, 0x46c81a);
    Reactants.registerReactant("plutonium", 1, 0xaaaaaa);
    ReactorConversions.register("uFuel", "plutonium");

    Reactants.registerSolid("uraniumFuel", "uFuel");
    Reactants.registerSolid("tinyPlutonium", "plutonium");
    Item uraniumFuel = Item.getByNameOrId("ic2:nuclear");
    if(uraniumFuel != null)
    {
        OreDictionary.registerOre("uraniumFuel", uraniumFuel);
        OreDictionary.registerOre("tinyPlutonium", new ItemStack(uraniumFuel, 1, 7));
    }
    else
    {
        OreDictionary.registerOre("tinyPlutonium", new ItemStack(Item.getByNameOrId("bigreactors:ingotMetals"), 0, 1));
    }

    Fluid fluidUranium = FluidRegistry.getFluid("uraniumfuel");
    if(fluidUranium != null)
        Reactants.registerFluid(fluidUranium, "uFuel");
}
 
开发者ID:joserobjr,项目名称:UraniumBigReactor,代码行数:28,代码来源:UraniumBigReactorMod.java

示例3: moderateByBlock

import erogenousbeef.bigreactors.api.registry.ReactorInterior; //导入依赖的package包/类
private void moderateByBlock(RadiationData data, RadiationPacket radiation, String block) {
  ReactorInteriorData moderatorData;
  moderatorData = ReactorInterior.getBlockData(block);

  if (moderatorData == null) {
    moderatorData = airData;
  }

  applyModerationFactors(data, radiation, moderatorData);
}
 
开发者ID:sidoh,项目名称:reactor_simulator,代码行数:11,代码来源:RadiationHelperSimulator.java

示例4: moderateByFluid

import erogenousbeef.bigreactors.api.registry.ReactorInterior; //导入依赖的package包/类
private void moderateByFluid(RadiationData data, RadiationPacket radiation, String name) {

    float absorption, heatEfficiency, moderation;

    ReactorInteriorData moderatorData = ReactorInterior.getFluidData(name);

    if (moderatorData == null) {
      moderatorData = waterData;
    }

    applyModerationFactors(data, radiation, moderatorData);
  }
 
开发者ID:sidoh,项目名称:reactor_simulator,代码行数:13,代码来源:RadiationHelperSimulator.java


注:本文中的erogenousbeef.bigreactors.api.registry.ReactorInterior类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。