Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final org.slf4j.Logger
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
static Path
getDebugTexturePath
(Path p_262015_) static ByteBuffer
readResource
(InputStream p_85304_) private static ByteBuffer
readResource
(ReadableByteChannel p_273208_, int p_273297_) static void
writeAsPNG
(Path p_285286_, String p_285408_, GpuTexture p_406229_, int p_285400_, IntUnaryOperator p_284988_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger 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
-
readResource
private static ByteBuffer readResource(ReadableByteChannel p_273208_, int p_273297_) throws IOException - Throws:
IOException
-
writeAsPNG
public static void writeAsPNG(Path p_285286_, String p_285408_, GpuTexture p_406229_, int p_285400_, IntUnaryOperator p_284988_) -
getDebugTexturePath
-
getDebugTexturePath
-