本文整理汇总了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;
}
示例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");
}
示例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);
}
示例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);
}