Enum Class Feature

java.lang.Object
java.lang.Enum<Feature>
net.neoforged.testframework.conf.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>, Constable

public enum Feature extends Enum<Feature>
This class represents the different features a TestFramework may have.
See Also:
  • Enum Constant Details

    • CLIENT_SYNC

      public static final Feature CLIENT_SYNC
      This feature syncs the status of tests to clients.
    • CLIENT_MODIFICATIONS

      public static final Feature CLIENT_MODIFICATIONS
      This feature allows clients to modify the status of tests.
    • GAMETEST

      public static final Feature GAMETEST
      This feature enables the GameTest integration.
    • SUMMARY_DUMP

      public static final Feature SUMMARY_DUMP
      When enabled, test summaries will be dumped when a server stops.
    • TEST_STORE

      public static final Feature TEST_STORE
      When enabled, this feature will store the tests that existed when a player last logged on, using a SavedData.
      When a player joins, they will get a message in chat containing all newly added tests.
    • MAGIC_ANNOTATIONS

      public static final Feature MAGIC_ANNOTATIONS
      Register tests with annotations.
  • Field Details

    • enabledByDefault

      private final boolean enabledByDefault
  • Constructor Details

    • Feature

      private Feature(boolean enabledByDefault)
  • Method Details

    • values

      public static Feature[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Feature valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isEnabledByDefault

      public boolean isEnabledByDefault()