Record Class GameTestBatchFactory.BatchKey
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.GameTestBatchFactory.BatchKey
- Enclosing class:
GameTestBatchFactory
private static record GameTestBatchFactory.BatchKey(Holder<TestEnvironmentDefinition<?>> environment, ResourceKey<Level> dimension)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<Level> The field for thedimensionrecord component.private final Holder<TestEnvironmentDefinition<?>> The field for theenvironmentrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBatchKey(Holder<TestEnvironmentDefinition<?>> environment, ResourceKey<Level> dimension) Creates an instance of aBatchKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
environment
The field for theenvironmentrecord component. -
dimension
The field for thedimensionrecord component.
-
-
Constructor Details
-
BatchKey
Creates an instance of aBatchKeyrecord class.- Parameters:
environment- the value for theenvironmentrecord componentdimension- the value for thedimensionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-