Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
- Mappings:
Namespace Name intermediary com/mojang/blaze3d/platform/TextureUtilofficial com/mojang/blaze3d/platform/TextureUtilnamed com/mojang/blaze3d/platform/TextureUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Loggerstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidbind(int id) static intstatic Pathstatic PathgetDebugTexturePath(Path path) static voidprepareImage(int id, int width, int height) static voidprepareImage(int id, int maxLevel, int width, int height) static voidprepareImage(NativeImage.InternalFormat internalFormat, int id, int width, int height) static voidprepareImage(NativeImage.InternalFormat internalFormat, int id, int maxLevel, int width, int height) static ByteBufferreadResource(InputStream inputStream) private static ByteBufferreadResource(ReadableByteChannel channel, int bufSize) static voidreleaseTextureId(int id) static voidwriteAsPNG(Path directory, String prefix, int textureId, int scales, int width, int height) static voidwriteAsPNG(Path directory, String prefix, int textureId, int scales, int width, int height, @Nullable IntUnaryOperator operator)
-
Field Details
-
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 intermediary releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)Vofficial 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 intermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)Vofficial prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)Vnamed prepareImageLcom/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 intermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)Vofficial prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lehc$b;III)Vnamed prepareImageLcom/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 intermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)Vofficial prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)Vnamed prepareImageLcom/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 intermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)Vofficial prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lehc$b;IIII)Vnamed prepareImageLcom/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 intermediary bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)Vofficial bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)Vnamed bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
-
readResource
- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;official 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;
-
readResource
- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/nio/channels/ReadableByteChannel;I)Ljava/nio/ByteBuffer;official readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/nio/channels/ReadableByteChannel;I)Ljava/nio/ByteBuffer;named readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/nio/channels/ReadableByteChannel;I)Ljava/nio/ByteBuffer;
-
writeAsPNG
public static void writeAsPNG(Path directory, String prefix, int textureId, int scales, int width, int height) - Mappings:
Namespace Name Mixin selector intermediary writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIII)Vofficial writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIII)Vnamed writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIII)V
-
writeAsPNG
public static void writeAsPNG(Path directory, String prefix, int textureId, int scales, int width, int height, @Nullable @Nullable IntUnaryOperator operator) - Mappings:
Namespace Name Mixin selector intermediary writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIIILjava/util/function/IntUnaryOperator;)Vofficial writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIIILjava/util/function/IntUnaryOperator;)Vnamed writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIIILjava/util/function/IntUnaryOperator;)V
-
getDebugTexturePath
- Mappings:
Namespace Name Mixin selector intermediary getDebugTexturePathLcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;official getDebugTexturePathLcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;named getDebugTexturePathLcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
-
getDebugTexturePath
-