Class 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
    • Field Detail

      • DEFAULT_CANCEL_REASON

        public static final ITextComponent DEFAULT_CANCEL_REASON
      • screenshotFile

        private java.io.File screenshotFile
    • Constructor Detail

      • ScreenshotEvent

        public ScreenshotEvent​(NativeImage image,
                               java.io.File screenshotFile)
    • Method Detail

      • getScreenshotFile

        public java.io.File getScreenshotFile()
      • setScreenshotFile

        public void setScreenshotFile​(java.io.File screenshotFile)
      • setResultMessage

        public void setResultMessage​(ITextComponent resultMessage)