Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final TileEntity te = holder.te;
- te.setPos(holder.pos);
- final FakeWorld fakeWorld = new FakeWorld(holder.actualState, world.getSaveHandler(), world.getWorldInfo(), world.provider, world.profiler, true);
- te.setWorld(fakeWorld);
- final int pass = 0;
- if (te.shouldRenderInPass(pass))
- {
- final TileEntityRendererDispatcher terd = TileEntityRendererDispatcher.instance;
- terd.prepare(fakeWorld,
- Minecraft.getMinecraft().renderEngine,
- Minecraft.getMinecraft().fontRenderer,
- new FakeEntity(fakeWorld),
- null,
- 0.0F);
- GL11.glPushMatrix();
- terd.renderEngine = Minecraft.getMinecraft().renderEngine;
- terd.preDrawBatch();
- GL11.glColor4f(1F, 1F, 1F, 1F);
- terd.renderTileEntity(te, partialTicks, -1);
- terd.drawBatch(pass);
- GL11.glPopMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement