use of buildcraft.core.lib.fluids.FluidDefinition in project BuildCraft by BuildCraft.
the class BuildCraftEnergy method registerModels.
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void registerModels(ModelBakeEvent event) {
FluidDefinition[] arr = { oil, fuel, redPlasma };
if (Loader.isModLoaded("BuildCraft|Factory")) {
arr[0] = null;
arr[1] = null;
}
if (!BuildCraftCore.DEVELOPER_MODE) {
arr[2] = null;
}
for (FluidDefinition def : arr) {
if (def == null)
continue;
IModel model = new ModelFluid(def.fluid);
IBakedModel baked = model.bake(ModelRotation.X0_Y0, DefaultVertexFormats.BLOCK, ModelLoader.defaultTextureGetter());
ModelResourceLocation loc = ModelHelper.getBlockResourceLocation(def.block);
event.modelRegistry.putObject(loc, baked);
}
}
use of buildcraft.core.lib.fluids.FluidDefinition in project BuildCraft by BuildCraft.
the class ComplexRefiningManager method addBiDirectionalHeatExchange.
private static void addBiDirectionalHeatExchange(FluidDefinition[] coldToHot, int amount, int ticks) {
IComplexRefineryRecipeManager manager = BuildcraftRecipeRegistry.complexRefinery;
for (int h = 1; h < coldToHot.length; h++) {
FluidDefinition cold = coldToHot[h - 1];
FluidDefinition hot = coldToHot[h];
manager.addHeatableRecipe(cold.createFluidStack(amount), hot.createFluidStack(amount), h - 1, h, ticks, false);
manager.addCoolableRecipe(hot.createFluidStack(amount), cold.createFluidStack(amount), h, h - 1, ticks, false);
}
}
Aggregations