Package net.minecraft.client
Class Screenshot
java.lang.Object
net.minecraft.client.Screenshot
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private Fileprivate final intprivate static final org.slf4j.Loggerprivate final DataOutputStreamprivate intstatic final Stringprivate final int - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static voidvoidaddRegion(ByteBuffer p_168610_, int p_168611_, int p_168612_, int p_168613_, int p_168614_) close()private static Filestatic voidgrab(File p_92290_, RenderTarget p_92293_, Consumer<Component> p_92294_) static voidvoidsaveRow()static NativeImagetakeScreenshot(RenderTarget p_92282_)  
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
SCREENSHOT_DIR
- See Also:
 
 - 
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
 
 -