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 avjintermediary net/minecraft/class_674named net/minecraft/client/util/ScreenshotUtils
-
Field Summary
Fields Modifier and Type Field Description private static DateFormatDATE_FORMATprivate static int[]field_2795private static IntBufferintBufferprivate static LoggerLOGGER -
Constructor Summary
Constructors Constructor Description ScreenshotUtils() -
Method Summary
Modifier and Type Method Description private static FilegetScreenshotFile(File screenshotsDirectory)static TextsaveScreenshot(File parent, int textureWidth, int textureHeight, Framebuffer buffer)static TextsaveScreenshot(File parent, String name, int textureWidth, int textureHeight, Framebuffer buffer)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLavj;a:Lorg/apache/logging/log4j/Logger;intermediary field_2792Lnet/minecraft/class_674;field_2792:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/util/ScreenshotUtils;LOGGER:Lorg/apache/logging/log4j/Logger;
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official bLavj;b:Ljava/text/DateFormat;intermediary field_2793Lnet/minecraft/class_674;field_2793:Ljava/text/DateFormat;named DATE_FORMATLnet/minecraft/client/util/ScreenshotUtils;DATE_FORMAT:Ljava/text/DateFormat;
-
intBuffer
- Mappings:
Namespace Name Mixin selector official cLavj;c:Ljava/nio/IntBuffer;intermediary field_2794Lnet/minecraft/class_674;field_2794:Ljava/nio/IntBuffer;named intBufferLnet/minecraft/client/util/ScreenshotUtils;intBuffer:Ljava/nio/IntBuffer;
-
field_2795
private static int[] field_2795- Mappings:
Namespace Name Mixin selector official dLavj;d:[Iintermediary field_2795Lnet/minecraft/class_674;field_2795:[Inamed field_2795Lnet/minecraft/client/util/ScreenshotUtils;field_2795:[I
-
-
Constructor Details
-
ScreenshotUtils
public ScreenshotUtils()
-
-
Method Details
-
saveScreenshot
public static Text saveScreenshot(File parent, int textureWidth, int textureHeight, Framebuffer buffer)- Mappings:
Namespace Name Mixin selector official aLavj;a(Ljava/io/File;IILbfw;)Leu;intermediary method_2371Lnet/minecraft/class_674;method_2371(Ljava/io/File;IILnet/minecraft/class_1040;)Lnet/minecraft/class_1444;named saveScreenshotLnet/minecraft/client/util/ScreenshotUtils;saveScreenshot(Ljava/io/File;IILnet/minecraft/client/gl/Framebuffer;)Lnet/minecraft/text/Text;
-
saveScreenshot
public static Text saveScreenshot(File parent, String name, int textureWidth, int textureHeight, Framebuffer buffer)- Mappings:
Namespace Name Mixin selector official aLavj;a(Ljava/io/File;Ljava/lang/String;IILbfw;)Leu;intermediary method_2372Lnet/minecraft/class_674;method_2372(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/class_1040;)Lnet/minecraft/class_1444;named saveScreenshotLnet/minecraft/client/util/ScreenshotUtils;saveScreenshot(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/client/gl/Framebuffer;)Lnet/minecraft/text/Text;
-
getScreenshotFile
- Mappings:
Namespace Name Mixin selector official aLavj;a(Ljava/io/File;)Ljava/io/File;intermediary method_2370Lnet/minecraft/class_674;method_2370(Ljava/io/File;)Ljava/io/File;named getScreenshotFileLnet/minecraft/client/util/ScreenshotUtils;getScreenshotFile(Ljava/io/File;)Ljava/io/File;
-