package info.u_team.u_team_core.util;

import net.minecraft.client.gui.AbstractGui;

/**
 * Some utility methods for guis
 * 
 * @author HyCraftHD
 */
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);
	}
	
}

@@ -76,16 +76,60 @@
 ractGui;
+%0Aimport net.minecraftforge.api.distmarker.*;
 %0A%0A/**%0A *
@@ -188,16 +188,37 @@
 tHD%0A */%0A
+@OnlyIn(Dist.CLIENT)%0A
 public c

Add OnlyIn(Dist.Client) to GuiUtil