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;
}
Aggregations