Class ScreenShotHelper


  • public class ScreenShotHelper
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.text.DateFormat DATE_FORMAT  
      private static org.apache.logging.log4j.Logger LOGGER  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void _grab​(java.io.File p_228051_0_, java.lang.String p_228051_1_, int p_228051_2_, int p_228051_3_, Framebuffer p_228051_4_, java.util.function.Consumer<ITextComponent> p_228051_5_)  
      private static java.io.File getFile​(java.io.File p_74290_0_)  
      static void grab​(java.io.File p_148260_0_, int p_148260_1_, int p_148260_2_, Framebuffer p_148260_3_, java.util.function.Consumer<ITextComponent> p_148260_4_)  
      static void grab​(java.io.File p_148259_0_, java.lang.String p_148259_1_, int p_148259_2_, int p_148259_3_, Framebuffer p_148259_4_, java.util.function.Consumer<ITextComponent> p_148259_5_)  
      static NativeImage takeScreenshot​(int p_198052_0_, int p_198052_1_, Framebuffer p_198052_2_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • DATE_FORMAT

        private static final java.text.DateFormat DATE_FORMAT
    • Constructor Detail

      • ScreenShotHelper

        public ScreenShotHelper()
    • Method Detail

      • grab

        public static void grab​(java.io.File p_148260_0_,
                                int p_148260_1_,
                                int p_148260_2_,
                                Framebuffer p_148260_3_,
                                java.util.function.Consumer<ITextComponent> p_148260_4_)
      • grab

        public static void grab​(java.io.File p_148259_0_,
                                @Nullable
                                java.lang.String p_148259_1_,
                                int p_148259_2_,
                                int p_148259_3_,
                                Framebuffer p_148259_4_,
                                java.util.function.Consumer<ITextComponent> p_148259_5_)
      • _grab

        private static void _grab​(java.io.File p_228051_0_,
                                  @Nullable
                                  java.lang.String p_228051_1_,
                                  int p_228051_2_,
                                  int p_228051_3_,
                                  Framebuffer p_228051_4_,
                                  java.util.function.Consumer<ITextComponent> p_228051_5_)
      • takeScreenshot

        public static NativeImage takeScreenshot​(int p_198052_0_,
                                                 int p_198052_1_,
                                                 Framebuffer p_198052_2_)
      • getFile

        private static java.io.File getFile​(java.io.File p_74290_0_)