Package net.minecraft.client.util
Class ScreenshotUtils
java.lang.Object
net.minecraft.client.util.ScreenshotUtils
@Environment(CLIENT) public class ScreenshotUtils extends Object
- Mappings:
Namespace Name official dqs
intermediary net/minecraft/class_318
named net/minecraft/client/util/ScreenshotUtils
-
Field Summary
Fields Modifier and Type Field Description private static DateFormat
DATE_FORMAT
private static Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description ScreenshotUtils()
-
Method Summary
Modifier and Type Method Description private static File
getScreenshotFilename(File directory)
static void
saveScreenshot(File gameDirectory, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)
static void
saveScreenshot(File gameDirectory, String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)
private static void
saveScreenshotInner(File gameDirectory, String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)
static NativeImage
takeScreenshot(int width, int height, Framebuffer framebuffer)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldqs;a:Lorg/apache/logging/log4j/Logger;
intermediary field_1974
Lnet/minecraft/class_318;field_1974:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/util/ScreenshotUtils;LOGGER:Lorg/apache/logging/log4j/Logger;
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official b
Ldqs;b:Ljava/text/DateFormat;
intermediary field_1973
Lnet/minecraft/class_318;field_1973:Ljava/text/DateFormat;
named DATE_FORMAT
Lnet/minecraft/client/util/ScreenshotUtils;DATE_FORMAT:Ljava/text/DateFormat;
-
-
Constructor Details
-
ScreenshotUtils
public ScreenshotUtils()
-
-
Method Details
-
saveScreenshot
public static void saveScreenshot(File gameDirectory, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)- Mappings:
Namespace Name Mixin selector official a
Ldqs;a(Ljava/io/File;IILdkl;Ljava/util/function/Consumer;)V
intermediary method_1659
Lnet/minecraft/class_318;method_1659(Ljava/io/File;IILnet/minecraft/class_276;Ljava/util/function/Consumer;)V
named saveScreenshot
Lnet/minecraft/client/util/ScreenshotUtils;saveScreenshot(Ljava/io/File;IILnet/minecraft/client/gl/Framebuffer;Ljava/util/function/Consumer;)V
-
saveScreenshot
public static void saveScreenshot(File gameDirectory, @Nullable String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)- Mappings:
Namespace Name Mixin selector official a
Ldqs;a(Ljava/io/File;Ljava/lang/String;IILdkl;Ljava/util/function/Consumer;)V
intermediary method_22690
Lnet/minecraft/class_318;method_22690(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/class_276;Ljava/util/function/Consumer;)V
named saveScreenshot
Lnet/minecraft/client/util/ScreenshotUtils;saveScreenshot(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/client/gl/Framebuffer;Ljava/util/function/Consumer;)V
-
saveScreenshotInner
private static void saveScreenshotInner(File gameDirectory, @Nullable String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)- Mappings:
Namespace Name Mixin selector official b
Ldqs;b(Ljava/io/File;Ljava/lang/String;IILdkl;Ljava/util/function/Consumer;)V
intermediary method_1662
Lnet/minecraft/class_318;method_1662(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/class_276;Ljava/util/function/Consumer;)V
named saveScreenshotInner
Lnet/minecraft/client/util/ScreenshotUtils;saveScreenshotInner(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/client/gl/Framebuffer;Ljava/util/function/Consumer;)V
-
takeScreenshot
- Mappings:
Namespace Name Mixin selector official a
Ldqs;a(IILdkl;)Ldky;
intermediary method_1663
Lnet/minecraft/class_318;method_1663(IILnet/minecraft/class_276;)Lnet/minecraft/class_1011;
named takeScreenshot
Lnet/minecraft/client/util/ScreenshotUtils;takeScreenshot(IILnet/minecraft/client/gl/Framebuffer;)Lnet/minecraft/client/texture/NativeImage;
-
getScreenshotFilename
- Mappings:
Namespace Name Mixin selector official a
Ldqs;a(Ljava/io/File;)Ljava/io/File;
intermediary method_1660
Lnet/minecraft/class_318;method_1660(Ljava/io/File;)Ljava/io/File;
named getScreenshotFilename
Lnet/minecraft/client/util/ScreenshotUtils;getScreenshotFilename(Ljava/io/File;)Ljava/io/File;
-