Search in sources :

Example 1 with ImageBufferDownload

use of net.minecraft.client.renderer.ImageBufferDownload in project Armourers-Workshop by RiskyKen.

the class PlayerTextureDownloader method getDownloadImageSkin.

private ThreadDownloadImageData getDownloadImageSkin(ResourceLocation resourceLocation, String textureString, PlayerTexture playerTexture, TextureType textureType) {
    TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();
    Object object = texturemanager.getTexture(resourceLocation);
    if (object == null) {
        object = new ModThreadDownloadImageData((File) null, textureString, AbstractClientPlayer.locationStevePng, new ImageBufferDownload(), playerTexture);
        texturemanager.loadTexture(resourceLocation, (ITextureObject) object);
    }
    return (ThreadDownloadImageData) object;
}
Also used : TextureManager(net.minecraft.client.renderer.texture.TextureManager) ImageBufferDownload(net.minecraft.client.renderer.ImageBufferDownload) ITextureObject(net.minecraft.client.renderer.texture.ITextureObject) File(java.io.File) ThreadDownloadImageData(net.minecraft.client.renderer.ThreadDownloadImageData)

Aggregations

File (java.io.File)1 ImageBufferDownload (net.minecraft.client.renderer.ImageBufferDownload)1 ThreadDownloadImageData (net.minecraft.client.renderer.ThreadDownloadImageData)1 ITextureObject (net.minecraft.client.renderer.texture.ITextureObject)1 TextureManager (net.minecraft.client.renderer.texture.TextureManager)1