Draw a House

Draws a house on your screen.

final int windowTint = new Color(135, 206, 250).getRGB();

void onRenderTick(float partialTicks) {
    int[] size = client.getDisplaySize();
    float x = size[0] / 2f, y = size[1] / 2f + 20;

    client.render.line2D(x, y, x + 40, y + 40, 1, -1);
    client.render.line2D(x + 40, y + 40, x - 40, y + 40, 1, -1);
    client.render.line2D(x - 40, y + 40, x, y, 1, -1);
    
    client.render.line2D(x - 40, y + 40, x - 40, y + 120, 1, -1);
    client.render.line2D(x - 40, y + 120, x + 40, y + 120, 1, -1);
    client.render.line2D(x + 40, y + 120, x + 40, y + 40, 1, -1);
    
    client.render.line2D(x + 10, y + 120, x + 10, y + 80, 1, -1);
    client.render.line2D(x + 10, y + 80, x - 10, y + 80, 1, -1);
    client.render.line2D(x - 10, y + 80, x - 10, y + 120, 1, -1);
    
    client.render.rect((int) (x - 8), (int) (y + 100), (int) (x - 6), (int) (y + 97), -1);
    
    client.render.rect((int) (x - 30), (int) (y + 50), (int) (x - 10), (int) (y + 70), windowTint);
    client.render.line2D(x - 30, y + 50, x - 10, y + 50, 1, -1);
    client.render.line2D(x - 30, y + 70, x - 10, y + 70, 1, -1);
    client.render.line2D(x - 30, y + 50, x - 30, y + 70, 1, -1);
    client.render.line2D(x - 10, y + 50, x - 10, y + 70, 1, -1);
    
    client.render.rect((int) (x + 10), (int) (y + 50), (int) (x + 30), (int) (y + 70), windowTint);
    client.render.line2D(x + 30, y + 50, x + 10, y + 50, 1, -1);
    client.render.line2D(x + 30, y + 70, x + 10, y + 70, 1, -1);
    client.render.line2D(x + 30, y + 50, x + 30, y + 70, 1, -1);
    client.render.line2D(x + 10, y + 50, x + 10, y + 70, 1, -1);
}

Last updated