类 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
    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official LOGGER Lcom/mojang/blaze3d/platform/TextureUtil;LOGGER:Lorg/apache/logging/log4j/Logger;
        intermediary LOGGER Lcom/mojang/blaze3d/platform/TextureUtil;LOGGER:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lcom/mojang/blaze3d/platform/TextureUtil;LOGGER:Lorg/apache/logging/log4j/Logger;
      • MIN_MIPMAP_LEVEL

        public static final int MIN_MIPMAP_LEVEL
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official MIN_MIPMAP_LEVEL Lcom/mojang/blaze3d/platform/TextureUtil;MIN_MIPMAP_LEVEL:I
        intermediary MIN_MIPMAP_LEVEL Lcom/mojang/blaze3d/platform/TextureUtil;MIN_MIPMAP_LEVEL:I
        named MIN_MIPMAP_LEVEL Lcom/mojang/blaze3d/platform/TextureUtil;MIN_MIPMAP_LEVEL:I
      • DEFAULT_IMAGE_BUFFER_SIZE

        private static final int DEFAULT_IMAGE_BUFFER_SIZE
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official DEFAULT_IMAGE_BUFFER_SIZE Lcom/mojang/blaze3d/platform/TextureUtil;DEFAULT_IMAGE_BUFFER_SIZE:I
        intermediary DEFAULT_IMAGE_BUFFER_SIZE Lcom/mojang/blaze3d/platform/TextureUtil;DEFAULT_IMAGE_BUFFER_SIZE:I
        named DEFAULT_IMAGE_BUFFER_SIZE Lcom/mojang/blaze3d/platform/TextureUtil;DEFAULT_IMAGE_BUFFER_SIZE:I
    • 构造器详细资料

      • TextureUtil

        public TextureUtil()
    • 方法详细资料

      • generateTextureId

        public static int generateTextureId()
        Mappings:
        Namespace Name Mixin selector
        official generateTextureId Lcom/mojang/blaze3d/platform/TextureUtil;generateTextureId()I
        intermediary generateTextureId Lcom/mojang/blaze3d/platform/TextureUtil;generateTextureId()I
        named generateTextureId Lcom/mojang/blaze3d/platform/TextureUtil;generateTextureId()I
      • 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(Ldoj$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(Ldoj$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
        抛出:
        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)
        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