public static void drawGraceHUD(DrawContext context) {
MinecraftClient client = MinecraftClient.getInstance();
if (client == null) {return;}
Identifier GRACEHUD = Identifier.of(TFAGM.MOD_ID, "textures/hud/gracehud.png");
int screenWidth = client.getWindow().getFramebufferWidth();
int screenHeight = client.getWindow().getFramebufferHeight();
int textureWidth = 640;
int textureHeight = 180;
int frameCount = 2;
int frameWidth = textureWidth / frameCount;
double CurrentTime = Util.getMeasuringTimeMs() / 1000.0;
int currentFrame = (int) ((CurrentTime / 1.1) % frameCount);
float u = currentFrame * frameWidth;
context.drawTexture(RenderPipelines.GUI_TEXTURED, GRACEHUD , 0, 0, u, 0, screenWidth, screenHeight, textureWidth, textureHeight);
}