Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
- Mappings:
Namespace Name named com/mojang/blaze3d/platform/TextureUtilintermediary com/mojang/blaze3d/platform/TextureUtilofficial 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 TypeMethodDescriptionstatic Pathstatic PathgetDebugTexturePath(Path path) static ByteBufferreadResource(InputStream inputStream) private static ByteBufferreadResource(ReadableByteChannel channel, int bufSize) static voidwriteAsPNG(Path directory, String prefix, GpuTexture texture, int scales, IntUnaryOperator colorFunction)
-
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
-
readResource
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named 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;official readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
-
readResource
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/nio/channels/ReadableByteChannel;I)Ljava/nio/ByteBuffer;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;
-
writeAsPNG
public static void writeAsPNG(Path directory, String prefix, GpuTexture texture, int scales, IntUnaryOperator colorFunction) - Mappings:
Namespace Name Mixin selector named writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;Lcom/mojang/blaze3d/textures/GpuTexture;ILjava/util/function/IntUnaryOperator;)Vintermediary writeAsPNGLcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/nio/file/Path;Ljava/lang/String;Lcom/mojang/blaze3d/textures/GpuTexture;ILjava/util/function/IntUnaryOperator;)Vofficial writeAsPNGLcom/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 getDebugTexturePathLcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;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;
-
getDebugTexturePath
-