Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
- Mappings:
Namespace Name official com/mojang/blaze3d/platform/TextureUtil
intermediary com/mojang/blaze3d/platform/TextureUtil
named 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 official releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
intermediary releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
named 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 official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
named 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 official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lekq$b;III)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)V
named prepareImage
Lcom/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 official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
named 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 official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lekq$b;IIII)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)V
named prepareImage
Lcom/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 official bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
intermediary bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
named bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
-
readResource
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official 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;
named readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
-
readResource
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official 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;
named 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 official 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
named 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 official 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
named 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 official 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;
named getDebugTexturePath
Lcom/mojang/blaze3d/platform/TextureUtil;getDebugTexturePath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
-
getDebugTexturePath
-