类 ScreenshotUtils
- java.lang.Object
-
- net.minecraft.client.util.ScreenshotUtils
-
@Environment(CLIENT) public class ScreenshotUtils extends Object
- Mappings:
Namespace Name official duuintermediary net/minecraft/class_318named net/minecraft/client/util/ScreenshotUtils
-
-
字段概要
字段 修饰符和类型 字段 说明 private static DateFormatDATE_FORMATprivate intfield_32157private DataOutputStreamfield_32158private byte[]field_32159private intfield_32160private intfield_32161private Filefield_32162private static LoggerLOGGER
-
构造器概要
构造器 构造器 说明 ScreenshotUtils(File file, int int2, int int3, int int4)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private static FilegetScreenshotFilename(File directory)voidmethod_35710()voidmethod_35711(ByteBuffer byteBuffer, int int2, int int3, int int4, int int5)Filemethod_35712()static voidsaveScreenshot(File gameDirectory, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)static voidsaveScreenshot(File gameDirectory, @Nullable String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)private static voidsaveScreenshotInner(File gameDirectory, @Nullable String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)static NativeImagetakeScreenshot(int width, int height, Framebuffer framebuffer)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLduu;a:Lorg/apache/logging/log4j/Logger;intermediary field_1974Lnet/minecraft/class_318;field_1974:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/util/ScreenshotUtils;LOGGER:Lorg/apache/logging/log4j/Logger;
-
DATE_FORMAT
private static final DateFormat DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official bLduu;b:Ljava/text/DateFormat;intermediary field_1973Lnet/minecraft/class_318;field_1973:Ljava/text/DateFormat;named DATE_FORMATLnet/minecraft/client/util/ScreenshotUtils;DATE_FORMAT:Ljava/text/DateFormat;
-
field_32157
private int field_32157
- Mappings:
Namespace Name Mixin selector official cLduu;c:Iintermediary field_32157Lnet/minecraft/class_318;field_32157:Inamed field_32157Lnet/minecraft/client/util/ScreenshotUtils;field_32157:I
-
field_32158
private final DataOutputStream field_32158
- Mappings:
Namespace Name Mixin selector official dLduu;d:Ljava/io/DataOutputStream;intermediary field_32158Lnet/minecraft/class_318;field_32158:Ljava/io/DataOutputStream;named field_32158Lnet/minecraft/client/util/ScreenshotUtils;field_32158:Ljava/io/DataOutputStream;
-
field_32159
private final byte[] field_32159
- Mappings:
Namespace Name Mixin selector official eLduu;e:[Bintermediary field_32159Lnet/minecraft/class_318;field_32159:[Bnamed field_32159Lnet/minecraft/client/util/ScreenshotUtils;field_32159:[B
-
field_32160
private final int field_32160
- Mappings:
Namespace Name Mixin selector official fLduu;f:Iintermediary field_32160Lnet/minecraft/class_318;field_32160:Inamed field_32160Lnet/minecraft/client/util/ScreenshotUtils;field_32160:I
-
field_32161
private final int field_32161
- Mappings:
Namespace Name Mixin selector official gLduu;g:Iintermediary field_32161Lnet/minecraft/class_318;field_32161:Inamed field_32161Lnet/minecraft/client/util/ScreenshotUtils;field_32161:I
-
field_32162
private File field_32162
- Mappings:
Namespace Name Mixin selector official hLduu;h:Ljava/io/File;intermediary field_32162Lnet/minecraft/class_318;field_32162:Ljava/io/File;named field_32162Lnet/minecraft/client/util/ScreenshotUtils;field_32162:Ljava/io/File;
-
-
构造器详细资料
-
ScreenshotUtils
public ScreenshotUtils(File file, int int2, int int3, int int4) throws IOException
- 抛出:
IOException
-
-
方法详细资料
-
saveScreenshot
public static void saveScreenshot(File gameDirectory, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)
- Mappings:
Namespace Name Mixin selector official aLduu;a(Ljava/io/File;IILdnx;Ljava/util/function/Consumer;)Vintermediary method_1659Lnet/minecraft/class_318;method_1659(Ljava/io/File;IILnet/minecraft/class_276;Ljava/util/function/Consumer;)Vnamed saveScreenshotLnet/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 @Nullable String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)
- Mappings:
Namespace Name Mixin selector official aLduu;a(Ljava/io/File;Ljava/lang/String;IILdnx;Ljava/util/function/Consumer;)Vintermediary method_22690Lnet/minecraft/class_318;method_22690(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/class_276;Ljava/util/function/Consumer;)Vnamed saveScreenshotLnet/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 @Nullable String fileName, int framebufferWidth, int framebufferHeight, Framebuffer framebuffer, Consumer<Text> messageReceiver)
- Mappings:
Namespace Name Mixin selector official bLduu;b(Ljava/io/File;Ljava/lang/String;IILdnx;Ljava/util/function/Consumer;)Vintermediary method_1662Lnet/minecraft/class_318;method_1662(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/class_276;Ljava/util/function/Consumer;)Vnamed saveScreenshotInnerLnet/minecraft/client/util/ScreenshotUtils;saveScreenshotInner(Ljava/io/File;Ljava/lang/String;IILnet/minecraft/client/gl/Framebuffer;Ljava/util/function/Consumer;)V
-
takeScreenshot
public static NativeImage takeScreenshot(int width, int height, Framebuffer framebuffer)
- Mappings:
Namespace Name Mixin selector official aLduu;a(IILdnx;)Ldoj;intermediary method_1663Lnet/minecraft/class_318;method_1663(IILnet/minecraft/class_276;)Lnet/minecraft/class_1011;named takeScreenshotLnet/minecraft/client/util/ScreenshotUtils;takeScreenshot(IILnet/minecraft/client/gl/Framebuffer;)Lnet/minecraft/client/texture/NativeImage;
-
getScreenshotFilename
private static File getScreenshotFilename(File directory)
- Mappings:
Namespace Name Mixin selector official aLduu;a(Ljava/io/File;)Ljava/io/File;intermediary method_1660Lnet/minecraft/class_318;method_1660(Ljava/io/File;)Ljava/io/File;named getScreenshotFilenameLnet/minecraft/client/util/ScreenshotUtils;getScreenshotFilename(Ljava/io/File;)Ljava/io/File;
-
method_35711
public void method_35711(ByteBuffer byteBuffer, int int2, int int3, int int4, int int5)
- Mappings:
Namespace Name Mixin selector official aLduu;a(Ljava/nio/ByteBuffer;IIII)Vintermediary method_35711Lnet/minecraft/class_318;method_35711(Ljava/nio/ByteBuffer;IIII)Vnamed method_35711Lnet/minecraft/client/util/ScreenshotUtils;method_35711(Ljava/nio/ByteBuffer;IIII)V
-
method_35710
public void method_35710() throws IOException- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLduu;a()Vintermediary method_35710Lnet/minecraft/class_318;method_35710()Vnamed method_35710Lnet/minecraft/client/util/ScreenshotUtils;method_35710()V
-
method_35712
public File method_35712() throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official bLduu;b()Ljava/io/File;intermediary method_35712Lnet/minecraft/class_318;method_35712()Ljava/io/File;named method_35712Lnet/minecraft/client/util/ScreenshotUtils;method_35712()Ljava/io/File;
-
-