Good afternoon, the renderer does not take into account its name json file. But if you use registry name, then everything works fine. Here are examples, the first works the second is not.
1:
public void renderItemMeta(Item item, int meta, String file) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, meta, new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
2:
public void renderItemMeta(Item item, int meta, String file) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, meta, new ModelResourceLocation("uilmod:" + file, "inventory"));
}