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 Logger LOGGER
    • MIN_MIPMAP_LEVEL

      public static final int MIN_MIPMAP_LEVEL
      See Also:
      Constant Field Values
    • DEFAULT_IMAGE_BUFFER_SIZE

      private static final int DEFAULT_IMAGE_BUFFER_SIZE
      See Also:
      Constant Field Values
  • 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.GLFormat internalFormat, int id, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldpl$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$GLFormat;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.GLFormat internalFormat, int id, int maxLevel, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official prepareImage Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldpl$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$GLFormat;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;
    • readResourceAsString

      @Nullable public static @Nullable String readResourceAsString(InputStream inputStream)
      Mappings:
      Namespace Name Mixin selector
      official readResourceAsString Lcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;
      intermediary readResourceAsString Lcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;
      named readResourceAsString Lcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;
    • writeAsPNG

      public static void writeAsPNG(String string, int int2, int int3, int int4, int int5)
    • 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