public class TextureUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TextureUtils.IIconSelfRegister |
| Constructor and Description |
|---|
TextureUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addIconRegistrar(TextureUtils.IIconSelfRegister registrar) |
static void |
bindAtlas(int atlasIndex) |
static void |
copySubImg(int[] fromTex,
int fromWidth,
int fromX,
int fromY,
int width,
int height,
int[] toTex,
int toWidth,
int toX,
int toY) |
static TextureManager |
engine() |
static IIcon |
getBlankIcon(int size,
IIconRegister iconRegister) |
static java.io.InputStream |
getTextureResource(ResourceLocation textureFile) |
static TextureSpecial |
getTextureSpecial(IIconRegister iconRegister,
java.lang.String name) |
static boolean |
isMissing(IIcon icon,
ResourceLocation atlas) |
static java.awt.image.BufferedImage |
loadBufferedImage(ResourceLocation textureFile) |
static TextureDataHolder |
loadTexture(ResourceLocation resource) |
static Colour[] |
loadTextureColours(ResourceLocation resource) |
static int[] |
loadTextureData(ResourceLocation resource) |
static void |
prepareTexture(int target,
int texture,
int min_mag_filter,
int wrap) |
static boolean |
refreshTexture(TextureMap map,
java.lang.String name)
Uses an empty placeholder texture to tell if the map has been reloaded since the last call to refresh texture and the texture with name needs to be reacquired to be valid
|
static IIcon |
safeIcon(IIcon icon) |
void |
textureLoad(TextureStitchEvent.Pre event) |
public static void addIconRegistrar(TextureUtils.IIconSelfRegister registrar)
public void textureLoad(TextureStitchEvent.Pre event)
public static int[] loadTextureData(ResourceLocation resource)
public static Colour[] loadTextureColours(ResourceLocation resource)
public static java.io.InputStream getTextureResource(ResourceLocation textureFile)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage loadBufferedImage(ResourceLocation textureFile)
public static TextureManager engine()
public static void copySubImg(int[] fromTex,
int fromWidth,
int fromX,
int fromY,
int width,
int height,
int[] toTex,
int toWidth,
int toX,
int toY)
public static void bindAtlas(int atlasIndex)
public static IIcon getBlankIcon(int size,
IIconRegister iconRegister)
public static TextureSpecial getTextureSpecial(IIconRegister iconRegister, java.lang.String name)
public static void prepareTexture(int target,
int texture,
int min_mag_filter,
int wrap)
public static TextureDataHolder loadTexture(ResourceLocation resource)
public static boolean refreshTexture(TextureMap map,
java.lang.String name)
public static IIcon safeIcon(IIcon icon)
public static boolean isMissing(IIcon icon,
ResourceLocation atlas)