package info.u_team.u_team_core.util;

import net.minecraft.client.gui.AbstractGui;
import net.minecraftforge.api.distmarker.*;

/**
 * Some utility methods for guis
 * 
 * @author HyCraftHD
 */
@OnlyIn(Dist.CLIENT)
public class GuiUtil {
	
	/**
	 * Draws the default container border
	 * 
	 * @param x
	 * @param y
	 * @param width
	 * @param height
	 */
	public static void drawContainerBorder(int x, int y, int width, int height) {
		// ARGB ... Strange formal
		
		final int darkColor = 0xFF373737;
		final int mediumColor = 0xFF8B8B8B;
		final int brightColor = 0xFFFFFFFF;
		
		AbstractGui.fill(x, y, x + width - 1, y + 1, darkColor);
		AbstractGui.fill(x, y, x + 1, y + height - 1, darkColor);
		
		AbstractGui.fill(x + width - 1, y, x + width, y + 1, mediumColor);
		AbstractGui.fill(x, y + height - 1, x + 1, y + height, mediumColor);
		
		AbstractGui.fill(x + 1, y + height, x + width - 1, y + height - 1, brightColor);
		AbstractGui.fill(x + width - 1, y + 1, x + width, y + height, brightColor);
	}
	
}

@@ -32,16 +32,63 @@
 .util;%0A%0A
+import com.mojang.blaze3d.matrix.MatrixStack;%0A%0A
 import n
@@ -436,16 +436,41 @@
 rBorder(
+MatrixStack matrixStack, 
 int x, i
@@ -654,36 +654,59 @@
 %0A%09%09AbstractGui.f
-ill(
+unc_238467_a_(matrixStack, 
 x, y, x + width 
@@ -740,28 +740,51 @@
 bstractGui.f
-ill(
+unc_238467_a_(matrixStack, 
 x, y, x + 1,
@@ -822,36 +822,59 @@
 %0A%09%09AbstractGui.f
-ill(
+unc_238467_a_(matrixStack, 
 x + width - 1, y
@@ -922,20 +922,43 @@
 actGui.f
-ill(
+unc_238467_a_(matrixStack, 
 x, y + h
@@ -1015,28 +1015,51 @@
 bstractGui.f
-ill(
+unc_238467_a_(matrixStack, 
 x + 1, y + h
@@ -1129,12 +1129,35 @@
 ui.f
-ill(
+unc_238467_a_(matrixStack, 
 x + 

Add matrix stack to gui util