Skip to content

Instantly share code, notes, and snippets.

@rgbatty
Created September 23, 2014 21:12
Show Gist options
  • Save rgbatty/7504900a7391ae266ec8 to your computer and use it in GitHub Desktop.
Save rgbatty/7504900a7391ae266ec8 to your computer and use it in GitHub Desktop.
public class ClientProxy extends CommonProxy {
@Override
public void initRenderingAndTextures() {
// Render Ids
RenderIds.coral = RenderingRegistry.getNextAvailableRenderId();
//model inits
TechneModel tm = (TechneModel)AdvancedModelLoader.loadModel(new ResourceLocation(Reference.MOD_ID.toLowerCase(), "models/fish.tcn"));
Map<String, GroupObject> coralModel = ModelObj
.bakeModel(tm, 1f / 16, new Matrix4f().scale(new Vector3f(-1, -1, 1)));
//Renderer inits
ISBRHCoral isbrhCoral = new ISBRHCoral((WavefrontObject)coralModel);
//Registers
RenderingRegistry.registerBlockHandler(isbrhCoral);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment