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, List<SummaryDumper> dumpers, MissingDescriptionAction onMissingDescription)
extends Record
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable Supplier
<ClientConfiguration> The field for theclientConfiguration
record component.private final int
The field for thecommandRequiredPermission
record component.private final List
<SummaryDumper> The field for thedumpers
record component.private final Collection
<Feature> The field for theenabledFeatures
record component.The field for theenabledTests
record component.private final ResourceLocation
The field for theid
record component.private final MissingDescriptionAction
The field for theonMissingDescription
record component. -
Constructor Summary
ConstructorDescriptionFrameworkConfiguration
(ResourceLocation id, Collection<Feature> enabledFeatures, int commandRequiredPermission, List<String> enabledTests, @Nullable Supplier<ClientConfiguration> clientConfiguration, List<SummaryDumper> dumpers, MissingDescriptionAction onMissingDescription) Creates an instance of aFrameworkConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Supplier
<ClientConfiguration> Returns the value of theclientConfiguration
record component.int
Returns the value of thecommandRequiredPermission
record component.create()
dumpers()
Returns the value of thedumpers
record component.Returns the value of theenabledFeatures
record component.Returns the value of theenabledTests
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
Returns the value of theonMissingDescription
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
enabledFeatures
The field for theenabledFeatures
record component. -
commandRequiredPermission
private final int commandRequiredPermissionThe field for thecommandRequiredPermission
record component. -
enabledTests
The field for theenabledTests
record component. -
clientConfiguration
The field for theclientConfiguration
record component. -
dumpers
The field for thedumpers
record component. -
onMissingDescription
The field for theonMissingDescription
record component.
-
-
Constructor Details
-
FrameworkConfiguration
public FrameworkConfiguration(ResourceLocation id, Collection<Feature> enabledFeatures, int commandRequiredPermission, List<String> enabledTests, @Nullable @Nullable Supplier<ClientConfiguration> clientConfiguration, List<SummaryDumper> dumpers, MissingDescriptionAction onMissingDescription) Creates an instance of aFrameworkConfiguration
record class.- Parameters:
id
- the value for theid
record componentenabledFeatures
- the value for theenabledFeatures
record componentcommandRequiredPermission
- the value for thecommandRequiredPermission
record componentenabledTests
- the value for theenabledTests
record componentclientConfiguration
- the value for theclientConfiguration
record componentdumpers
- the value for thedumpers
record componentonMissingDescription
- the value for theonMissingDescription
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
enabledFeatures
Returns the value of theenabledFeatures
record component.- Returns:
- the value of the
enabledFeatures
record component
-
commandRequiredPermission
public int commandRequiredPermission()Returns the value of thecommandRequiredPermission
record component.- Returns:
- the value of the
commandRequiredPermission
record component
-
enabledTests
Returns the value of theenabledTests
record component.- Returns:
- the value of the
enabledTests
record component
-
clientConfiguration
Returns the value of theclientConfiguration
record component.- Returns:
- the value of the
clientConfiguration
record component
-
dumpers
Returns the value of thedumpers
record component.- Returns:
- the value of the
dumpers
record component
-
onMissingDescription
Returns the value of theonMissingDescription
record component.- Returns:
- the value of the
onMissingDescription
record component
-