类 CrashCallableTest

java.lang.Object
net.neoforged.neoforge.oldtest.CrashCallableTest

public class CrashCallableTest extends Object
Test features and guards of crash-callables.
  • The "AlwaysActiveCrashCallable" must always be printed to the crash report
  • The "ToggleableCrashCallable" must only be printed to the crash report when the ENABLED flag is true
  • The "BadContentCrashCallable" must always print "BadContentCrashCallable: ERR" to the crash report and print an exception to the log (relies on a try-catch in vanilla code)
  • The "BadFlagCrashCallable" must never print to the crash report and must print an exception to the log
To initiate a debug crash to test this, hold F3 + C for 10 seconds.
  • 字段详细资料

    • ENABLED

      private static final boolean ENABLED
      另请参阅:
    • ACTIVE

      private static final boolean ACTIVE
      另请参阅:
  • 构造器详细资料

    • CrashCallableTest

      public CrashCallableTest()