Class HttpTexture

All Implemented Interfaces:
AutoCloseable

public class HttpTexture extends SimpleTexture
  • Field Details

    • LOGGER

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

      private static final int SKIN_WIDTH
      See Also:
      Constant Field Values
    • SKIN_HEIGHT

      private static final int SKIN_HEIGHT
      See Also:
      Constant Field Values
    • LEGACY_SKIN_HEIGHT

      private static final int LEGACY_SKIN_HEIGHT
      See Also:
      Constant Field Values
    • 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

  • Method Details

    • loadCallback

      private void loadCallback(NativeImage p_118011_)
    • upload

      private void upload(NativeImage p_118021_)
    • load

      public void load(ResourceManager p_118009_) throws IOException
      Overrides:
      load in class SimpleTexture
      Throws:
      IOException
    • load

      @Nullable private NativeImage load(InputStream p_118019_)
    • processLegacySkin

      @Nullable private NativeImage processLegacySkin(NativeImage p_118033_)
    • doNotchTransparencyHack

      private static void doNotchTransparencyHack(NativeImage p_118013_, int p_118014_, int p_118015_, int p_118016_, int p_118017_)
    • setNoAlpha

      private static void setNoAlpha(NativeImage p_118023_, int p_118024_, int p_118025_, int p_118026_, int p_118027_)