Class DownloadingTexture

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class DownloadingTexture
    extends SimpleTexture
    • Field Detail

      • LOGGER

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

        @Nullable
        private final java.io.File file
      • urlString

        private final java.lang.String urlString
      • processLegacySkin

        private final boolean processLegacySkin
      • onDownloaded

        @Nullable
        private final java.lang.Runnable onDownloaded
      • future

        @Nullable
        private java.util.concurrent.CompletableFuture<?> future
      • uploaded

        private boolean uploaded
    • Constructor Detail

      • DownloadingTexture

        public DownloadingTexture​(@Nullable
                                  java.io.File p_i226043_1_,
                                  java.lang.String p_i226043_2_,
                                  ResourceLocation p_i226043_3_,
                                  boolean p_i226043_4_,
                                  @Nullable
                                  java.lang.Runnable p_i226043_5_)
    • Method Detail

      • loadCallback

        private void loadCallback​(NativeImage p_195417_1_)
      • upload

        private void upload​(NativeImage p_229160_1_)
      • load

        @Nullable
        private NativeImage load​(java.io.InputStream p_229159_1_)
      • 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_)