类 Screenshot
java.lang.Object
net.minecraft.client.Screenshot
-
字段概要
字段修饰符和类型字段说明private final byte[]
private File
private final int
private static final org.slf4j.Logger
private final DataOutputStream
private int
static final String
private final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
void
addRegion
(ByteBuffer p_168610_, int p_168611_, int p_168612_, int p_168613_, int p_168614_) close()
private static File
static void
grab
(File p_92290_, RenderTarget p_92293_, Consumer<Component> p_92294_) static void
void
saveRow()
static NativeImage
takeScreenshot
(RenderTarget p_92282_)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SCREENSHOT_DIR
- 另请参阅:
-
rowHeight
private int rowHeight -
outputStream
-
bytes
private final byte[] bytes -
width
private final int width -
height
private final int height -
file
-
-
构造器详细资料
-
Screenshot
- 抛出:
IOException
-
-
方法详细资料
-
grab
-
grab
public static void grab(File p_92296_, @Nullable String p_92297_, RenderTarget p_92300_, Consumer<Component> p_92301_) -
_grab
private static void _grab(File p_92306_, @Nullable String p_92307_, RenderTarget p_92310_, Consumer<Component> p_92311_) -
takeScreenshot
-
getFile
-
addRegion
public void addRegion(ByteBuffer p_168610_, int p_168611_, int p_168612_, int p_168613_, int p_168614_) -
saveRow
- 抛出:
IOException
-
close
- 抛出:
IOException
-