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);
}
Aggregations