Package net.minecraft.client
Class Screenshot
java.lang.Object
net.minecraft.client.Screenshot
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
private File
private final int
private static final org.slf4j.Logger
private final DataOutputStream
private int
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
rowHeight
private int rowHeight -
outputStream
-
bytes
private final byte[] bytes -
width
private final int width -
height
private final int height -
file
-
-
Constructor Details
-
Screenshot
- Throws:
IOException
-
-
Method Details
-
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
- Throws:
IOException
-
close
- Throws:
IOException
-