Extend GuiImage to allow for ResourceLocations

This commit is contained in:
johni0702
2015-10-09 08:29:53 +02:00
parent fc4dc86355
commit 0ad7eb31fd
2 changed files with 80 additions and 4 deletions

View File

@@ -22,8 +22,20 @@
package de.johni0702.minecraft.gui.element;
import net.minecraft.util.ResourceLocation;
import java.awt.image.BufferedImage;
public interface IGuiImage<T extends IGuiImage<T>> extends GuiElement<T> {
T setTexture(BufferedImage img);
T setTexture(ResourceLocation resourceLocation);
T setTexture(ResourceLocation resourceLocation, int u, int v, int width, int height);
T setU(int u);
T setV(int v);
T setUV(int u, int v);
T setUWidth(int width);
T setVHeight(int height);
T setUVSize(int width, int height);
}