Class DownloadingTexture

All Implemented Interfaces:
AutoCloseable

public class DownloadingTexture extends SimpleTexture
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • file

      @Nullable private final File file
    • urlString

      private final String urlString
    • processLegacySkin

      private final boolean processLegacySkin
    • onDownloaded

      @Nullable private final Runnable onDownloaded
    • future

      @Nullable private CompletableFuture<?> future
    • uploaded

      private boolean uploaded
  • Constructor Details

    • DownloadingTexture

      public DownloadingTexture(@Nullable File p_i226043_1_, String p_i226043_2_, ResourceLocation p_i226043_3_, boolean p_i226043_4_, @Nullable Runnable p_i226043_5_)
  • Method Details

    • loadCallback

      private void loadCallback(NativeImage p_195417_1_)
    • upload

      private void upload(NativeImage p_229160_1_)
    • load

      public void load(IResourceManager p_195413_1_) throws IOException
      Overrides:
      load in class SimpleTexture
      Throws:
      IOException
    • load

      @Nullable private NativeImage load(InputStream p_229159_1_)
    • processLegacySkin

      private static NativeImage processLegacySkin(NativeImage p_229163_0_)
    • doNotchTransparencyHack

      private static void doNotchTransparencyHack(NativeImage p_229158_0_, int p_229158_1_, int p_229158_2_, int p_229158_3_, int p_229158_4_)
    • setNoAlpha

      private static void setNoAlpha(NativeImage p_229161_0_, int p_229161_1_, int p_229161_2_, int p_229161_3_, int p_229161_4_)