And that's where I'm struggling...
OBJLoader.INSTANCE.addDomain(MOD_ID);
OBJLoader.INSTANCE.onResourceManagerReload(Minecraft.getMinecraft().getResourceManager());
IModel model = OBJLoader.INSTANCE.loadModel(new ResourceLocation(MOD_ID, "models/cube.obj"));
//model.bake(state, format, bakedTextureGetter) ?
@Override
public void doRender(Entity entity, double x, double y, double z, float entityYaw, float partialTicks) {
// what to put in here?
}
Or is this the better way?
@Override
public void doRender(Entity entity, double x, double y, double z, float entityYaw, float partialTicks) {
TileEntityRendererDispatcher.instance.render(MY_TILE_ENTITY, x, y, z, 0);
}