类 TextureUtil
- java.lang.Object
-
- com.mojang.blaze3d.platform.TextureUtil
-
@Environment(CLIENT) public class TextureUtil extends Object
- Mappings:
Namespace Name official com/mojang/blaze3d/platform/TextureUtilintermediary com/mojang/blaze3d/platform/TextureUtilnamed com/mojang/blaze3d/platform/TextureUtil
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intDEFAULT_IMAGE_BUFFER_SIZEprivate static LoggerLOGGERstatic intMIN_MIPMAP_LEVEL
-
构造器概要
构造器 构造器 说明 TextureUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 private static voidbind(int id)static intgenerateTextureId()static voidinitTexture(IntBuffer imageData, int width, int height)static voidprepareImage(int id, int width, int height)static voidprepareImage(int id, int maxLevel, int width, int height)static voidprepareImage(NativeImage.GLFormat internalFormat, int id, int width, int height)static voidprepareImage(NativeImage.GLFormat internalFormat, int id, int maxLevel, int width, int height)static ByteBufferreadResource(InputStream inputStream)static @Nullable StringreadResourceAsString(InputStream inputStream)static voidreleaseTextureId(int id)static voidwriteAsPNG(String string, int int2, int int3, int int4, int int5)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official LOGGERLcom/mojang/blaze3d/platform/TextureUtil;LOGGER:Lorg/apache/logging/log4j/Logger;intermediary LOGGERLcom/mojang/blaze3d/platform/TextureUtil;LOGGER:Lorg/apache/logging/log4j/Logger;named LOGGERLcom/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_LEVELLcom/mojang/blaze3d/platform/TextureUtil;MIN_MIPMAP_LEVEL:Iintermediary MIN_MIPMAP_LEVELLcom/mojang/blaze3d/platform/TextureUtil;MIN_MIPMAP_LEVEL:Inamed MIN_MIPMAP_LEVELLcom/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_SIZELcom/mojang/blaze3d/platform/TextureUtil;DEFAULT_IMAGE_BUFFER_SIZE:Iintermediary DEFAULT_IMAGE_BUFFER_SIZELcom/mojang/blaze3d/platform/TextureUtil;DEFAULT_IMAGE_BUFFER_SIZE:Inamed DEFAULT_IMAGE_BUFFER_SIZELcom/mojang/blaze3d/platform/TextureUtil;DEFAULT_IMAGE_BUFFER_SIZE:I
-
-
方法详细资料
-
generateTextureId
public static int generateTextureId()
- Mappings:
Namespace Name Mixin selector official generateTextureIdLcom/mojang/blaze3d/platform/TextureUtil;generateTextureId()Iintermediary generateTextureIdLcom/mojang/blaze3d/platform/TextureUtil;generateTextureId()Inamed generateTextureIdLcom/mojang/blaze3d/platform/TextureUtil;generateTextureId()I
-
releaseTextureId
public static void releaseTextureId(int id)
- Mappings:
Namespace Name Mixin selector official releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)Vintermediary releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)Vnamed releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
-
prepareImage
public static void prepareImage(int id, int width, int height)- Mappings:
Namespace Name Mixin selector official prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)Vnamed prepareImageLcom/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 prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldoj$b;III)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)Vnamed prepareImageLcom/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 prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)Vnamed prepareImageLcom/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 prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldoj$b;IIII)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)Vnamed prepareImageLcom/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 bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)Vintermediary bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)Vnamed bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
-
readResource
public static ByteBuffer readResource(InputStream inputStream) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;intermediary readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;named readResourceLcom/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 readResourceAsStringLcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;intermediary readResourceAsStringLcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;named readResourceAsStringLcom/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 writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)Vintermediary writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)Vnamed writeAsPNGLcom/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 initTextureLcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)Vintermediary initTextureLcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)Vnamed initTextureLcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
-
-