use of me.desht.pneumaticcraft.api.heat.HeatBehaviour in project pnc-repressurized by TeamPneumatic.
the class HeatBehaviourManager method addHeatBehaviours.
public void addHeatBehaviours(World world, BlockPos pos, IHeatExchangerLogic logic, List<HeatBehaviour> list) {
for (HeatBehaviour behaviour : behaviours.values()) {
behaviour.initialize(logic, world, pos);
if (behaviour.isApplicable()) {
try {
behaviour = behaviour.getClass().newInstance();
behaviour.initialize(logic, world, pos);
list.add(behaviour);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
Aggregations