Search in sources :

Example 1 with ModelHeatExchange

use of buildcraft.factory.client.model.ModelHeatExchange in project BuildCraft by BuildCraft.

the class BCFactoryModels method onModelBake.

@SubscribeEvent
public static void onModelBake(ModelBakeEvent event) {
    event.getModelRegistry().putObject(new ModelResourceLocation("buildcraftfactory:heat_exchange#normal"), new ModelHeatExchange());
    event.getModelRegistry().putObject(new ModelResourceLocation("buildcraftfactory:heat_exchange#inventory"), new ModelItemSimple(Arrays.stream(BCFactoryModels.HEAT_EXCHANGE_STATIC.getCutoutQuads()).map(MutableQuad::multShade).map(MutableQuad::toBakedItem).collect(Collectors.toList()), ModelItemSimple.TRANSFORM_BLOCK, true));
}
Also used : ModelHeatExchange(buildcraft.factory.client.model.ModelHeatExchange) ModelItemSimple(buildcraft.lib.client.model.ModelItemSimple) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) MutableQuad(buildcraft.lib.client.model.MutableQuad) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

ModelHeatExchange (buildcraft.factory.client.model.ModelHeatExchange)1 ModelItemSimple (buildcraft.lib.client.model.ModelItemSimple)1 MutableQuad (buildcraft.lib.client.model.MutableQuad)1 ModelResourceLocation (net.minecraft.client.renderer.block.model.ModelResourceLocation)1 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)1