package info.u_team.u_team_test.init;

import java.awt.Color;

import net.minecraftforge.client.event.ColorHandlerEvent;
import net.minecraftforge.eventbus.api.IEventBus;

public class TestColors {
	
	private static void colorItem(ColorHandlerEvent.Item event) {
		// This use the awt color class. Might not work but was too lazy to write an own color class.
		event.getItemColors().register((stack, index) -> Color.getHSBColor((float) stack.getDamageValue() / (float) stack.getMaxDamage(), 0.8F, 0.5F).getRGB(), TestItems.BASIC.get());
	}
	
	public static void registerMod(IEventBus bus) {
		bus.addListener(TestColors::colorItem);
	}
}

package info.u_team.u_team_test.init;

import net.minecraftforge.client.event.ColorHandlerEvent;
import net.minecraftforge.client.event.RenderTooltipEvent.Color;
import net.minecraftforge.eventbus.api.IEventBus;

public class TestColors {
	
	private static void colorItem(ColorHandlerEvent.Item event) {
		// This use the awt color class. Might not work but was too lazy to write an own color class.
		event.getItemColors().register((stack, index) -> Color.getHSBColor((float) stack.getDamageValue() / (float) stack.getMaxDamage(), 0.8F, 0.5F).getRGB(), TestItems.BASIC.get());
	}
	
	public static void registerMod(IEventBus bus) {
		bus.addListener(TestColors::colorItem);
	}
}

--- 
+++ 
@@ -1,7 +1,8 @@
 package info.u_team.u_team_test.init;
 
+import java.awt.Color;
+
 import net.minecraftforge.client.event.ColorHandlerEvent;
-import net.minecraftforge.client.event.RenderTooltipEvent.Color;
 import net.minecraftforge.eventbus.api.IEventBus;
 
 public class TestColors {
Fix test mod, compiles now :)