Class 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.
  • Field Details

  • Constructor Details

    • CrashCallableTest

      public CrashCallableTest()