Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.client.renderer;
- import net.minecraftforge.fml.relauncher.Side;
- import net.minecraftforge.fml.relauncher.SideOnly;
- @SideOnly(Side.CLIENT)
- public class Tessellator
- {
- private WorldRenderer worldRenderer;
- private WorldVertexBufferUploader vboUploader = new WorldVertexBufferUploader();
- /** The static instance of the Tessellator. */
- private static final Tessellator instance = new Tessellator(2097152);
- private static final String __OBFID = "CL_00000960";
- public static Tessellator getInstance()
- {
- /** The static instance of the Tessellator. */
- return instance;
- }
- public Tessellator(int bufferSize)
- {
- this.worldRenderer = new WorldRenderer(bufferSize);
- }
- /**
- * Draws the data set up in this tessellator and resets the state to prepare for new drawing.
- */
- public int draw()
- {
- return this.vboUploader.draw(this.worldRenderer, this.worldRenderer.finishDrawing());
- }
- public WorldRenderer getWorldRenderer()
- {
- return this.worldRenderer;
- }
- }
- //All Rights = Forge Team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement