本文整理汇总了Java中erogenousbeef.bigreactors.api.registry.ReactorInterior.getBlockData方法的典型用法代码示例。如果您正苦于以下问题:Java ReactorInterior.getBlockData方法的具体用法?Java ReactorInterior.getBlockData怎么用?Java ReactorInterior.getBlockData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erogenousbeef.bigreactors.api.registry.ReactorInterior
的用法示例。
在下文中一共展示了ReactorInterior.getBlockData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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);
}