@@ -0,0 +1,850 @@
+package info.u_team.u_team_core.gui.elements;%0A%0Aimport java.util.function.Function;%0A%0Aimport info.u_team.u_team_core.api.gui.ITextureProvider;%0Aimport net.minecraft.client.gui.widget.Widget;%0Aimport net.minecraft.util.ResourceLocation;%0A%0Apublic class WidgetTextureProvider implements ITextureProvider %7B%0A%09%0A%09protected Widget widget;%0A%09protected Function%3CBoolean, Integer%3E yImage;%0A%09%0A%09public WidgetTextureProvider(Widget widget, Function%3CBoolean, Integer%3E yImage) %7B%0A%09%09this.widget = widget;%0A%09%09this.yImage = yImage;%0A%09%7D%0A%09%0A%09@Override%0A%09public ResourceLocation getTexture() %7B%0A%09%09return Widget.WIDGETS_LOCATION;%0A%09%7D%0A%09%0A%09@Override%0A%09public int getU() %7B%0A%09%09return 0;%0A%09%7D%0A%09%0A%09@Override%0A%09public int getV() %7B%0A%09%09return 46 + yImage.apply(widget.isHovered()) * 20;%0A%09%7D%0A%09%0A%09@Override%0A%09public int getWidth() %7B%0A%09%09return 200;%0A%09%7D%0A%09%0A%09@Override%0A%09public int getHeight() %7B%0A%09%09return 20;%0A%09%7D%0A%09%0A%7D%0A

Add widget texture provider