Search in sources :

Example 1 with IUnbakedModel

use of net.minecraft.client.renderer.model.IUnbakedModel in project Overloaded by CJ-MC-Mods.

the class ClientProxy method bakeModelAndPut.

private static void bakeModelAndPut(ResourceLocation raw, ResourceLocation baked, ModelBakeEvent event) {
    IUnbakedModel unbakedModel = event.getModelLoader().getModel(raw);
    IBakedModel bakedModel = unbakedModel.bake(event.getModelLoader(), ModelLoader.defaultTextureGetter(), ModelRotation.X0_Y0, baked);
    event.getModelRegistry().put(baked, bakedModel);
}
Also used : IUnbakedModel(net.minecraft.client.renderer.model.IUnbakedModel) IBakedModel(net.minecraft.client.renderer.model.IBakedModel)

Aggregations

IBakedModel (net.minecraft.client.renderer.model.IBakedModel)1 IUnbakedModel (net.minecraft.client.renderer.model.IUnbakedModel)1