Class TextureUtil

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

@Environment(CLIENT) public class TextureUtil extends Object
Mappings:
Namespace Name
official com/mojang/blaze3d/platform/TextureUtil
intermediary com/mojang/blaze3d/platform/TextureUtil
named com/mojang/blaze3d/platform/TextureUtil
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MIN_MIPMAP_LEVEL

      public static final int MIN_MIPMAP_LEVEL
      See Also:
    • DEFAULT_IMAGE_BUFFER_SIZE

      private static final int DEFAULT_IMAGE_BUFFER_SIZE
      See Also:
  • Constructor Details

    • TextureUtil

      public TextureUtil()
  • Method Details

    • generateTextureId

      public static int generateTextureId()
    • releaseTextureId

      public static void releaseTextureId(int id)
      Mappings:
      Namespace Name Mixin selector
      official releaseTextureId Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
      intermediary releaseTextureId Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
      named releaseTextureId Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
    • prepareImage

      public static void prepareImage(int id, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
      intermediary prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
      named prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
    • prepareImage

      public static void prepareImage(NativeImage.InternalFormat internalFormat, int id, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldyt$b;III)V
      intermediary prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)V
      named prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$InternalFormat;III)V
    • prepareImage

      public static void prepareImage(int id, int maxLevel, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
      intermediary prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
      named prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
    • prepareImage

      public static void prepareImage(NativeImage.InternalFormat internalFormat, int id, int maxLevel, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldyt$b;IIII)V
      intermediary prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)V
      named prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$InternalFormat;IIII)V
    • bind

      private static void bind(int id)
      Mappings:
      Namespace Name Mixin selector
      official bind Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
      intermediary bind Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
      named bind Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
    • readResource

      public static ByteBuffer readResource(InputStream inputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official readResource Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
      intermediary readResource Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
      named readResource Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
    • writeAsPNG

      public static void writeAsPNG(String filename, int id, int scales, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official writeAsPNG Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)V
      intermediary writeAsPNG Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)V
      named writeAsPNG Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)V
    • initTexture

      public static void initTexture(IntBuffer imageData, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official initTexture Lcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
      intermediary initTexture Lcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
      named initTexture Lcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V