Advertisement
RS_Darki

Untitled

Oct 26th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. package net.minecraft.client.renderer;
  2.  
  3. import net.minecraftforge.fml.relauncher.Side;
  4. import net.minecraftforge.fml.relauncher.SideOnly;
  5.  
  6. @SideOnly(Side.CLIENT)
  7. public class Tessellator
  8. {
  9. private WorldRenderer worldRenderer;
  10. private WorldVertexBufferUploader vboUploader = new WorldVertexBufferUploader();
  11. /** The static instance of the Tessellator. */
  12. private static final Tessellator instance = new Tessellator(2097152);
  13. private static final String __OBFID = "CL_00000960";
  14.  
  15. public static Tessellator getInstance()
  16. {
  17. /** The static instance of the Tessellator. */
  18. return instance;
  19. }
  20.  
  21. public Tessellator(int bufferSize)
  22. {
  23. this.worldRenderer = new WorldRenderer(bufferSize);
  24. }
  25.  
  26. /**
  27. * Draws the data set up in this tessellator and resets the state to prepare for new drawing.
  28. */
  29. public int draw()
  30. {
  31. return this.vboUploader.draw(this.worldRenderer, this.worldRenderer.finishDrawing());
  32. }
  33.  
  34. public WorldRenderer getWorldRenderer()
  35. {
  36. return this.worldRenderer;
  37. }
  38. }
  39.  
  40. //All Rights = Forge Team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement