public class ScreenshotEvent
extends net.minecraftforge.eventbus.api.Event
MinecraftForge.EVENT_BUS
This event is Cancelable
screenshotFile
contains the file the screenshot will be/was saved to
image
contains the NativeImage
that will be saved
resultMessage
contains the ITextComponent
to be returned. If null
, the default vanilla message will be used insteadModifier and Type | Field and Description |
---|---|
static ITextComponent |
DEFAULT_CANCEL_REASON |
Constructor and Description |
---|
ScreenshotEvent(NativeImage image,
java.io.File screenshotFile) |
Modifier and Type | Method and Description |
---|---|
ITextComponent |
getCancelMessage() |
NativeImage |
getImage() |
ITextComponent |
getResultMessage() |
java.io.File |
getScreenshotFile() |
void |
setResultMessage(ITextComponent resultMessage) |
void |
setScreenshotFile(java.io.File screenshotFile) |
public static final ITextComponent DEFAULT_CANCEL_REASON
public ScreenshotEvent(NativeImage image, java.io.File screenshotFile)
public NativeImage getImage()
public java.io.File getScreenshotFile()
public void setScreenshotFile(java.io.File screenshotFile)
public ITextComponent getResultMessage()
public void setResultMessage(ITextComponent resultMessage)
public ITextComponent getCancelMessage()