Package net.minecraftforge.client.event
Class ScreenshotEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenshotEvent
public class ScreenshotEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired before and after a screenshot is taken
This event is fired on the
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 instead-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ITextComponent
private NativeImage
private ITextComponent
private File
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetImage()
void
setResultMessage
(ITextComponent resultMessage) void
setScreenshotFile
(File screenshotFile) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
DEFAULT_CANCEL_REASON
-
image
-
screenshotFile
-
resultMessage
-
-
Constructor Details
-
ScreenshotEvent
-
-
Method Details
-
getImage
-
getScreenshotFile
-
setScreenshotFile
-
getResultMessage
-
setResultMessage
-
getCancelMessage
-