Package net.minecraft.client
Class Screenshot
java.lang.Object
net.minecraft.client.Screenshot
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final byte[]private Fileprivate final intprivate static final org.slf4j.Loggerprivate final DataOutputStreamprivate intstatic final Stringprivate final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
SCREENSHOT_DIR- See Also:
 
- 
rowHeightprivate int rowHeight
- 
outputStream
- 
bytesprivate final byte[] bytes
- 
widthprivate final int width
- 
heightprivate final int height
- 
file
 
- 
- 
Constructor Details- 
Screenshot- Throws:
- IOException
 
 
- 
- 
Method Details- 
grab
- 
grabpublic static void grab(File p_92296_, @Nullable String p_92297_, RenderTarget p_92300_, Consumer<Component> p_92301_) 
- 
_grabprivate static void _grab(File p_92306_, @Nullable String p_92307_, RenderTarget p_92310_, Consumer<Component> p_92311_) 
- 
takeScreenshot
- 
getFile
- 
addRegionpublic void addRegion(ByteBuffer p_168610_, int p_168611_, int p_168612_, int p_168613_, int p_168614_) 
- 
saveRow- Throws:
- IOException
 
- 
close- Throws:
- IOException
 
 
-