2021-06-02 06:13:48 -04:00
|
|
|
CLASS net/minecraft/class_318 net/minecraft/client/util/ScreenshotRecorder
|
|
|
|
COMMENT A screenshot recorder takes screenshots and saves them into tga file format. It also
|
2021-05-19 08:45:15 -04:00
|
|
|
COMMENT holds a few utility methods for other types of screenshots.
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_1974 LOGGER Lorg/slf4j/Logger;
|
2021-05-19 08:45:15 -04:00
|
|
|
FIELD field_32157 unitHeight I
|
|
|
|
FIELD field_32158 stream Ljava/io/DataOutputStream;
|
|
|
|
FIELD field_32159 buffer [B
|
|
|
|
FIELD field_32160 width I
|
|
|
|
FIELD field_32161 height I
|
|
|
|
FIELD field_32162 file Ljava/io/File;
|
2022-11-21 14:45:10 -05:00
|
|
|
FIELD field_41337 SCREENSHOTS_DIRECTORY Ljava/lang/String;
|
2021-05-19 08:45:15 -04:00
|
|
|
METHOD <init> (Ljava/io/File;III)V
|
2021-06-02 06:13:48 -04:00
|
|
|
COMMENT Creates a screenshot recorder for huge screenshots.
|
2021-05-19 08:45:15 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @see net.minecraft.client.MinecraftClient#takeHugeScreenshot
|
|
|
|
ARG 1 gameDirectory
|
|
|
|
ARG 2 width
|
|
|
|
ARG 3 height
|
|
|
|
ARG 4 unitHeight
|
2021-07-01 12:21:19 -04:00
|
|
|
METHOD method_1659 saveScreenshot (Ljava/io/File;Lnet/minecraft/class_276;Ljava/util/function/Consumer;)V
|
2019-09-01 11:22:10 -04:00
|
|
|
ARG 0 gameDirectory
|
2021-07-03 20:31:01 -04:00
|
|
|
ARG 1 framebuffer
|
|
|
|
ARG 2 messageReceiver
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1660 getScreenshotFilename (Ljava/io/File;)Ljava/io/File;
|
2017-05-13 02:02:51 -04:00
|
|
|
ARG 0 directory
|
2021-07-01 12:21:19 -04:00
|
|
|
METHOD method_1662 saveScreenshotInner (Ljava/io/File;Ljava/lang/String;Lnet/minecraft/class_276;Ljava/util/function/Consumer;)V
|
2019-09-01 11:22:10 -04:00
|
|
|
ARG 0 gameDirectory
|
|
|
|
ARG 1 fileName
|
2021-07-03 20:31:01 -04:00
|
|
|
ARG 2 framebuffer
|
|
|
|
ARG 3 messageReceiver
|
2021-07-01 12:21:19 -04:00
|
|
|
METHOD method_1663 takeScreenshot (Lnet/minecraft/class_276;)Lnet/minecraft/class_1011;
|
2021-07-03 20:31:01 -04:00
|
|
|
ARG 0 framebuffer
|
2022-11-21 14:45:10 -05:00
|
|
|
METHOD method_1664 (Ljava/io/File;Lnet/minecraft/class_2583;)Lnet/minecraft/class_2583;
|
|
|
|
ARG 1 style
|
2021-07-01 12:21:19 -04:00
|
|
|
METHOD method_22690 saveScreenshot (Ljava/io/File;Ljava/lang/String;Lnet/minecraft/class_276;Ljava/util/function/Consumer;)V
|
2019-10-30 12:15:03 -04:00
|
|
|
ARG 0 gameDirectory
|
|
|
|
ARG 1 fileName
|
2021-07-03 20:31:01 -04:00
|
|
|
ARG 2 framebuffer
|
|
|
|
ARG 3 messageReceiver
|
2021-05-19 08:45:15 -04:00
|
|
|
METHOD method_35710 writeToStream ()V
|
|
|
|
COMMENT Writes the contents in the {@link #buffer} into the {@link #stream}.
|
|
|
|
METHOD method_35711 getIntoBuffer (Ljava/nio/ByteBuffer;IIII)V
|
|
|
|
COMMENT Transports image data from {@code data} into {@link #buffer}.
|
|
|
|
ARG 1 data
|
|
|
|
ARG 2 startWidth
|
|
|
|
ARG 3 startHeight
|
|
|
|
ARG 4 unitWidth
|
|
|
|
ARG 5 unitHeight
|
|
|
|
METHOD method_35712 finish ()Ljava/io/File;
|
|
|
|
COMMENT Finish taking the screenshot and return the complete tga file.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the tga file
|