public class ScreenShotHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.text.DateFormat |
DATE_FORMAT |
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
ScreenShotHelper() |
Modifier and Type | Method and Description |
---|---|
static NativeImage |
createScreenshot(int width,
int height,
Framebuffer framebufferIn) |
private static java.io.File |
getTimestampedPNGFileForDirectory(java.io.File gameDirectory) |
static void |
saveScreenshot(java.io.File gameDirectory,
int width,
int height,
Framebuffer buffer,
java.util.function.Consumer<ITextComponent> messageConsumer) |
static void |
saveScreenshot(java.io.File gameDirectory,
java.lang.String screenshotName,
int width,
int height,
Framebuffer buffer,
java.util.function.Consumer<ITextComponent> messageConsumer) |
private static void |
saveScreenshotRaw(java.io.File gameDirectory,
java.lang.String screenshotName,
int width,
int height,
Framebuffer buffer,
java.util.function.Consumer<ITextComponent> messageConsumer) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.text.DateFormat DATE_FORMAT
public static void saveScreenshot(java.io.File gameDirectory, int width, int height, Framebuffer buffer, java.util.function.Consumer<ITextComponent> messageConsumer)
public static void saveScreenshot(java.io.File gameDirectory, @Nullable java.lang.String screenshotName, int width, int height, Framebuffer buffer, java.util.function.Consumer<ITextComponent> messageConsumer)
private static void saveScreenshotRaw(java.io.File gameDirectory, @Nullable java.lang.String screenshotName, int width, int height, Framebuffer buffer, java.util.function.Consumer<ITextComponent> messageConsumer)
public static NativeImage createScreenshot(int width, int height, Framebuffer framebufferIn)
private static java.io.File getTimestampedPNGFileForDirectory(java.io.File gameDirectory)