Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void renderTileEntityAt(TileEntity te, double x, double y, double z, float partialTicks, int destroyStage) {
- GL11.glPushMatrix();
- Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("miencraft:diamond_block"));
- Tessellator.getInstance().getWorldRenderer().startDrawingQuads();
- int NUM_PIZZA_SLICES=2000;
- for(int i = 0; i <= NUM_PIZZA_SLICES; i++){ //NUM_PIZZA_SLICES decides how round the circle looks.
- double SUBDIVISIONS=180;
- double angle = Math.PI * 2 * i / SUBDIVISIONS;
- //GL11.glVertex2f((float) Math.cos(angle), (float) Math.sin(angle));
- Tessellator.getInstance().getWorldRenderer().addVertex((float) Math.cos(angle),(float) Math.sin(angle),z);
- }
- Tessellator.getInstance().getWorldRenderer().finishDrawing();
- Tessellator.getInstance().draw();
- GlStateManager.popMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement