Package net.neoforged.testframework.conf
Record Class FrameworkConfiguration
java.lang.Object
java.lang.Record
net.neoforged.testframework.conf.FrameworkConfiguration
@ParametersAreNonnullByDefault
public record FrameworkConfiguration(ResourceLocation id, Collection<Feature> enabledFeatures, int commandRequiredPermission, List<String> enabledTests, @Nullable Supplier<ClientConfiguration> clientConfiguration)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Supplier<ClientConfiguration>The field for theclientConfigurationrecord component.private final intThe field for thecommandRequiredPermissionrecord component.private final Collection<Feature>The field for theenabledFeaturesrecord component.The field for theenabledTestsrecord component.private final ResourceLocationThe field for theidrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFrameworkConfiguration(ResourceLocation id, Collection<Feature> enabledFeatures, int commandRequiredPermission, List<String> enabledTests, @Nullable Supplier<ClientConfiguration> clientConfiguration) Creates an instance of aFrameworkConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Supplier<ClientConfiguration>Returns the value of theclientConfigurationrecord component.intReturns the value of thecommandRequiredPermissionrecord component.create()Returns the value of theenabledFeaturesrecord component.Returns the value of theenabledTestsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
enabledFeatures
The field for theenabledFeaturesrecord component. -
commandRequiredPermission
private final int commandRequiredPermissionThe field for thecommandRequiredPermissionrecord component. -
enabledTests
The field for theenabledTestsrecord component. -
clientConfiguration
The field for theclientConfigurationrecord component.
-
-
Constructor Details
-
FrameworkConfiguration
public FrameworkConfiguration(ResourceLocation id, Collection<Feature> enabledFeatures, int commandRequiredPermission, List<String> enabledTests, @Nullable @Nullable Supplier<ClientConfiguration> clientConfiguration) Creates an instance of aFrameworkConfigurationrecord class.- Parameters:
id- the value for theidrecord componentenabledFeatures- the value for theenabledFeaturesrecord componentcommandRequiredPermission- the value for thecommandRequiredPermissionrecord componentenabledTests- the value for theenabledTestsrecord componentclientConfiguration- the value for theclientConfigurationrecord component
-
-
Method Details
-
builder
-
isEnabled
-
create
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
enabledFeatures
Returns the value of theenabledFeaturesrecord component.- Returns:
- the value of the
enabledFeaturesrecord component
-
commandRequiredPermission
public int commandRequiredPermission()Returns the value of thecommandRequiredPermissionrecord component.- Returns:
- the value of the
commandRequiredPermissionrecord component
-
enabledTests
Returns the value of theenabledTestsrecord component.- Returns:
- the value of the
enabledTestsrecord component
-
clientConfiguration
Returns the value of theclientConfigurationrecord component.- Returns:
- the value of the
clientConfigurationrecord component
-