@Override @SideOnly(Side.CLIENT) public void renderDynamic(Vector3 pos, float frame, int pass) { if (pass == 0) { TextureUtils.bindAtlas(0); CCRenderState.reset(); CCRenderState.setBrightness(world(), x(), y(), z()); CCRenderState.useModelColours(true); // TODO add Tube Item rendering here CCRenderState.setColour(-1); } }
@Override @SideOnly(Side.CLIENT) public void renderStatic(Vector3 pos, LazyLightMatrix olm, int pass) { if (pass == 0) { TextureUtils.bindAtlas(0); CCRenderState.reset(); CCRenderState.setBrightness(world(), x(), y(), z()); CCRenderState.useModelColours(true); /** temporary render start * */ int key = RenderFramedWire.modelKey(0, connMap); Translation t = new Translation(x(), y(), z()); IconTransformation uvt = new IconTransformation(EnumWire.RED_ALLOY.wireSprites[0]); RenderFramedWire.frameModels[6].render(t, uvt); for (int s = 0; s < 6; s++) if ((key & 1 << s) != 0) RenderFramedWire.frameModels[s].render(t, uvt); /** temporary render end * */ CCRenderState.setColour(-1); } }