Created
September 23, 2014 21:12
-
-
Save rgbatty/7504900a7391ae266ec8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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