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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionFrameworkConfiguration(ResourceLocation id, Collection<Feature> enabledFeatures, int commandRequiredPermission, List<String> enabledTests, @Nullable Supplier<ClientConfiguration> clientConfiguration) Creates an instance of aFrameworkConfigurationrecord class.
- 
Method SummaryModifier 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- 
idThe field for theidrecord component.
- 
enabledFeaturesThe field for theenabledFeaturesrecord component.
- 
commandRequiredPermissionprivate final int commandRequiredPermissionThe field for thecommandRequiredPermissionrecord component.
- 
enabledTestsThe field for theenabledTestsrecord component.
- 
clientConfigurationThe field for theclientConfigurationrecord component.
 
- 
- 
Constructor Details- 
FrameworkConfigurationpublic 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 the- idrecord component
- enabledFeatures- the value for the- enabledFeaturesrecord component
- commandRequiredPermission- the value for the- commandRequiredPermissionrecord component
- enabledTests- the value for the- enabledTestsrecord component
- clientConfiguration- the value for the- clientConfigurationrecord component
 
 
- 
- 
Method Details- 
builder
- 
isEnabled
- 
create
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
enabledFeaturesReturns the value of theenabledFeaturesrecord component.- Returns:
- the value of the enabledFeaturesrecord component
 
- 
commandRequiredPermissionpublic int commandRequiredPermission()Returns the value of thecommandRequiredPermissionrecord component.- Returns:
- the value of the commandRequiredPermissionrecord component
 
- 
enabledTestsReturns the value of theenabledTestsrecord component.- Returns:
- the value of the enabledTestsrecord component
 
- 
clientConfigurationReturns the value of theclientConfigurationrecord component.- Returns:
- the value of the clientConfigurationrecord component
 
 
-