Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
- Mappings:
Namespace Name named com/mojang/blaze3d/platform/TextureUtil
intermediary com/mojang/blaze3d/platform/TextureUtil
official com/mojang/blaze3d/platform/TextureUtil
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final Logger
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
bind
(int id) static int
static Path
static Path
getDebugTexturePath
(Path path) static void
prepareImage
(int id, int width, int height) static void
prepareImage
(int id, int maxLevel, int width, int height) static void
prepareImage
(NativeImage.InternalFormat internalFormat, int id, int width, int height) static void
prepareImage
(NativeImage.InternalFormat internalFormat, int id, int maxLevel, int width, int height) static ByteBuffer
readResource
(InputStream inputStream) private static ByteBuffer
readResource
(ReadableByteChannel channel, int bufSize) static void
releaseTextureId
(int id) static void
writeAsPNG
(Path directory, String prefix, int textureId, int scales, int width, int height) static void
writeAsPNG
(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 named releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
intermediary releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
official 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 named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
official prepareImage
Lcom/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 named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$InternalFormat;III)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)V
official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lfad$b;III)V
-
prepareImage
public static void prepareImage(int id, int maxLevel, int width, int height) - Mappings:
Namespace Name Mixin selector named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
official prepareImage
Lcom/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 named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$InternalFormat;IIII)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)V
official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lfad$b;IIII)V
-
bind
private static void bind(int id) - Mappings:
Namespace Name Mixin selector named bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
intermediary bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
official bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
-
readResource
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named 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;
official readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
-
readResource
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/nio/channels/ReadableByteChannel;I)Ljava/nio/ByteBuffer;
intermediary readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/nio/channels/ReadableByteChannel;I)Ljava/nio/ByteBuffer;
official readResource
Lcom/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 named writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIII)V
intermediary writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIII)V
official writeAsPNG
Lcom/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 named writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIIILjava/util/function/IntUnaryOperator;)V
intermediary writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIIILjava/util/function/IntUnaryOperator;)V
official writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;IIIILjava/util/function/IntUnaryOperator;)V
-
getDebugTexturePath
- Mappings:
Namespace Name Mixin selector named getDebugTexturePath
Lcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
intermediary getDebugTexturePath
Lcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
official getDebugTexturePath
Lcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
-
getDebugTexturePath
-