package dev.crucifixbeta.api.events.impl;

import dev.crucifixbeta.api.utils.render.Render3DUtil;
import java.awt.Color;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.Box;

@Environment(EnvType.CLIENT)
public class Render3DEvent {
   private static final Render3DEvent INSTANCE = new Render3DEvent();
   public MatrixStack matrixStack;
   public float tickDelta;

   public static Render3DEvent get(MatrixStack matrixStack, float tickDelta) {
      INSTANCE.matrixStack = matrixStack;
      INSTANCE.tickDelta = tickDelta;
      return INSTANCE;
   }

   public void drawBox(Box box, Color color) {
      Render3DUtil.drawBox(this.matrixStack, box, color);
   }

   public void drawFill(Box box, Color color) {
      Render3DUtil.drawFill(this.matrixStack, box, color);
   }
}
