Class TextureUtil

java.lang.Object
net.minecraft.client.texture.TextureUtil

@Environment(CLIENT)
public class TextureUtil
extends Object
Mappings:
Namespace Name
official dlc
intermediary net/minecraft/class_4536
named net/minecraft/client/texture/TextureUtil
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_22547 Lnet/minecraft/class_4536;field_22547:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/texture/TextureUtil;LOGGER:Lorg/apache/logging/log4j/Logger;
  • Constructor Details

    • TextureUtil

      public TextureUtil()
  • Method Details

    • generateId

      public static int generateId()
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a()I
      intermediary method_24956 Lnet/minecraft/class_4536;method_24956()I
      named generateId Lnet/minecraft/client/texture/TextureUtil;generateId()I
    • deleteId

      public static void deleteId​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(I)V
      intermediary method_24957 Lnet/minecraft/class_4536;method_24957(I)V
      named deleteId Lnet/minecraft/client/texture/TextureUtil;deleteId(I)V
    • allocate

      public static void allocate​(int id, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(III)V
      intermediary method_24958 Lnet/minecraft/class_4536;method_24958(III)V
      named allocate Lnet/minecraft/client/texture/TextureUtil;allocate(III)V
    • allocate

      public static void allocate​(NativeImage.GLFormat internalFormat, int id, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(Ldky$b;III)V
      intermediary method_24960 Lnet/minecraft/class_4536;method_24960(Lnet/minecraft/class_1011$class_1013;III)V
      named allocate Lnet/minecraft/client/texture/TextureUtil;allocate(Lnet/minecraft/client/texture/NativeImage$GLFormat;III)V
    • allocate

      public static void allocate​(int id, int maxLevel, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(IIII)V
      intermediary method_24959 Lnet/minecraft/class_4536;method_24959(IIII)V
      named allocate Lnet/minecraft/client/texture/TextureUtil;allocate(IIII)V
    • allocate

      public static void allocate​(NativeImage.GLFormat internalFormat, int id, int maxLevel, int width, int height)
      Allocate uninitialized backing memory for maxLevel+1 mip levels to texture id.
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(Ldky$b;IIII)V
      intermediary method_24961 Lnet/minecraft/class_4536;method_24961(Lnet/minecraft/class_1011$class_1013;IIII)V
      named allocate Lnet/minecraft/client/texture/TextureUtil;allocate(Lnet/minecraft/client/texture/NativeImage$GLFormat;IIII)V
    • bind

      private static void bind​(int id)
      Mappings:
      Namespace Name Mixin selector
      official b Ldlc;b(I)V
      intermediary method_24964 Lnet/minecraft/class_4536;method_24964(I)V
      named bind Lnet/minecraft/client/texture/TextureUtil;bind(I)V
    • readAllToByteBuffer

      public static ByteBuffer readAllToByteBuffer​(InputStream inputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
      intermediary method_24962 Lnet/minecraft/class_4536;method_24962(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
      named readAllToByteBuffer Lnet/minecraft/client/texture/TextureUtil;readAllToByteBuffer(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
    • readAllToString

      public static String readAllToString​(InputStream inputStream)
      Mappings:
      Namespace Name Mixin selector
      official b Ldlc;b(Ljava/io/InputStream;)Ljava/lang/String;
      intermediary method_24965 Lnet/minecraft/class_4536;method_24965(Ljava/io/InputStream;)Ljava/lang/String;
      named readAllToString Lnet/minecraft/client/texture/TextureUtil;readAllToString(Ljava/io/InputStream;)Ljava/lang/String;
    • uploadImage

      public static void uploadImage​(IntBuffer imageData, int width, int height)
      Uploads imageData to the bound texture. Each integer is interpreted as 0xAARRGGBB.
      Mappings:
      Namespace Name Mixin selector
      official a Ldlc;a(Ljava/nio/IntBuffer;II)V
      intermediary method_24963 Lnet/minecraft/class_4536;method_24963(Ljava/nio/IntBuffer;II)V
      named uploadImage Lnet/minecraft/client/texture/TextureUtil;uploadImage(Ljava/nio/IntBuffer;II)V