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
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final Logger
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
static Path
getDebugTexturePath
(Path path) static ByteBuffer
readResource
(InputStream inputStream) private static ByteBuffer
readResource
(ReadableByteChannel channel, int bufSize) static void
writeAsPNG
(Path directory, String prefix, GpuTexture texture, int scales, IntUnaryOperator colorFunction)
-
Field Details
-
Constructor Details
-
Method Details
-
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, GpuTexture texture, int scales, IntUnaryOperator colorFunction) - Mappings:
Namespace Name Mixin selector named writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;Lcom/mojang/blaze3d/textures/GpuTexture;ILjava/util/function/IntUnaryOperator;)V
intermediary writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;Lcom/mojang/blaze3d/textures/GpuTexture;ILjava/util/function/IntUnaryOperator;)V
official writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;Lcom/mojang/blaze3d/textures/GpuTexture;ILjava/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
-