Package net.minecraft.test
Record Class GameTestBatch
java.lang.Object
java.lang.Record
net.minecraft.test.GameTestBatch
- Record Components:
index-states-environment-
public record GameTestBatch(int index, Collection<GameTestState> states, RegistryEntry<TestEnvironmentDefinition> environment)
extends Record
- Mappings:
Namespace Name named net/minecraft/test/GameTestBatchintermediary net/minecraft/class_4514official sknamed indexintermediary comp_3533official anamed statesintermediary comp_2210official bnamed environmentintermediary comp_3534official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry<TestEnvironmentDefinition> The field for theenvironmentrecord component.private final intThe field for theindexrecord component.private final Collection<GameTestState> The field for thestatesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGameTestBatch(int int2, Collection<GameTestState> testFunctions, RegistryEntry<TestEnvironmentDefinition> registryEntry) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.intindex()Returns the value of theindexrecord component.states()Returns the value of thestatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindexrecord component. -
states
The field for thestatesrecord component. -
environment
The field for theenvironmentrecord component.
-
-
Constructor Details
-
GameTestBatch
public GameTestBatch(int int2, Collection<GameTestState> testFunctions, RegistryEntry<TestEnvironmentDefinition> registryEntry) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/GameTestBatch;<init>(ILjava/util/Collection;Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary <init>Lnet/minecraft/class_4514;<init>(ILjava/util/Collection;Lnet/minecraft/class_6880;)Vofficial <init>Lsk;<init>(ILjava/util/Collection;Ljg;)V
-
-
Method Details
-
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 '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
states
Returns the value of thestatesrecord component.- Returns:
- the value of the
statesrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-