Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. final TileEntity te = holder.te;
  2. te.setPos(holder.pos);
  3. final FakeWorld fakeWorld = new FakeWorld(holder.actualState, world.getSaveHandler(), world.getWorldInfo(), world.provider, world.profiler, true);
  4. te.setWorld(fakeWorld);
  5. final int pass = 0;
  6.  
  7. if (te.shouldRenderInPass(pass))
  8. {
  9. final TileEntityRendererDispatcher terd = TileEntityRendererDispatcher.instance;
  10. terd.prepare(fakeWorld,
  11. Minecraft.getMinecraft().renderEngine,
  12. Minecraft.getMinecraft().fontRenderer,
  13. new FakeEntity(fakeWorld),
  14. null,
  15. 0.0F);
  16. GL11.glPushMatrix();
  17. terd.renderEngine = Minecraft.getMinecraft().renderEngine;
  18. terd.preDrawBatch();
  19. GL11.glColor4f(1F, 1F, 1F, 1F);
  20. terd.renderTileEntity(te, partialTicks, -1);
  21. terd.drawBatch(pass);
  22. GL11.glPopMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement