Package net.neoforged.testframework.conf
Enum Class Feature
- All Implemented Interfaces:
Serializable
,Comparable<Feature>
,Constable
This class represents the different features a
TestFramework
may have.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis feature allows clients to modify the status of tests.This feature syncs the status of tests to clients.This feature enables the GameTest integration.Register tests with annotations.When enabled, test summaries will be dumped when a server stops.When enabled, this feature will store the tests that existed when a player last logged on, using a SavedData. -
Field Summary
-
Constructor Summary
-
Method Summary
-
Enum Constant Details
-
CLIENT_SYNC
This feature syncs the status of tests to clients. -
CLIENT_MODIFICATIONS
This feature allows clients to modify the status of tests. -
GAMETEST
This feature enables the GameTest integration. -
SUMMARY_DUMP
When enabled, test summaries will be dumped when a server stops. -
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
Register tests with annotations.
-
-
Field Details
-
enabledByDefault
private final boolean enabledByDefault
-
-
Constructor Details
-
Feature
private Feature(boolean enabledByDefault)
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isEnabledByDefault
public boolean isEnabledByDefault()
-