Class TextureUtil

java.lang.Object
com.mojang.blaze3d.platform.TextureUtil

public class TextureUtil extends Object
  • Field Details Link icon

    • LOGGER Link icon

      private static final org.slf4j.Logger LOGGER
    • MIN_MIPMAP_LEVEL Link icon

      public static final int MIN_MIPMAP_LEVEL
      See Also:
    • DEFAULT_IMAGE_BUFFER_SIZE Link icon

      private static final int DEFAULT_IMAGE_BUFFER_SIZE
      See Also:
  • Constructor Details Link icon

    • TextureUtil Link icon

      public TextureUtil()
  • Method Details Link icon

    • generateTextureId Link icon

      public static int generateTextureId()
    • releaseTextureId Link icon

      public static void releaseTextureId(int p_85282_)
    • prepareImage Link icon

      public static void prepareImage(int p_85284_, int p_85285_, int p_85286_)
    • prepareImage Link icon

      public static void prepareImage(NativeImage.InternalGlFormat p_85293_, int p_85294_, int p_85295_, int p_85296_)
    • prepareImage Link icon

      public static void prepareImage(int p_85288_, int p_85289_, int p_85290_, int p_85291_)
    • prepareImage Link icon

      public static void prepareImage(NativeImage.InternalGlFormat p_85298_, int p_85299_, int p_85300_, int p_85301_, int p_85302_)
    • bind Link icon

      private static void bind(int p_85310_)
    • readResource Link icon

      public static ByteBuffer readResource(InputStream p_85304_) throws IOException
      Throws:
      IOException
    • readResource Link icon

      private static ByteBuffer readResource(ReadableByteChannel p_273208_, int p_273297_) throws IOException
      Throws:
      IOException
    • writeAsPNG Link icon

      public static void writeAsPNG(Path p_261923_, String p_262070_, int p_261655_, int p_261576_, int p_261966_, int p_261775_)
    • writeAsPNG Link icon

      public static void writeAsPNG(Path p_285286_, String p_285408_, int p_285400_, int p_285244_, int p_285373_, int p_285206_, @Nullable IntUnaryOperator p_284988_)
    • getDebugTexturePath Link icon

      public static Path getDebugTexturePath(Path p_262015_)
    • getDebugTexturePath Link icon

      public static Path getDebugTexturePath()