Posted February 17, 201510 yr I need a way to render a block normally but from the TileEntitySpecialRenderer. I need this because i need to apply a rotation to it. I currently have this: private void renderWaterWheel(TileWaterWheel tile, double posX, double posY, double posZ, float partialTick){ GlStateManager.pushMatrix(); World world = tile.getWorld(); IBlockState state = tile.getBlockState(); BlockPos pos = tile.getPos(); GlStateManager.rotate(0.0F, 0.0F, 1.0F, tile.rotation); IFlexibleBakedModel model = (IFlexibleBakedModel) mc.getBlockRendererDispatcher().getModelFromBlockState(state, world, pos); mc.getBlockRendererDispatcher().getBlockModelRenderer().renderModel(world, model, state, pos, Tessellator.getInstance().getWorldRenderer()); GlStateManager.popMatrix(); } @Override public void renderTileEntityAt(TileEntity tile, double posX, double posY, double posZ, float partialTick, int i0) { renderWaterWheel((TileWaterWheel) tile, posX, posY, posZ, partialTick); } But this doesnt work. Anyone knows how to do it properly? http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
February 18, 201510 yr What do you mean by "this doesnt work"? I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.