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/GameTestBatch
intermediary net/minecraft/class_4514
official sk
named index
intermediary comp_3533
official a
named states
intermediary comp_2210
official b
named environment
intermediary comp_3534
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry
<TestEnvironmentDefinition> The field for theenvironment
record component.private final int
The field for theindex
record component.private final Collection
<GameTestState> The field for thestates
record component. -
Constructor Summary
ConstructorsConstructorDescriptionGameTestBatch
(int int2, Collection<GameTestState> testFunctions, RegistryEntry<TestEnvironmentDefinition> registryEntry) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironment
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.int
index()
Returns the value of theindex
record component.states()
Returns the value of thestates
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindex
record component. -
states
The field for thestates
record component. -
environment
The field for theenvironment
record 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;)V
intermediary <init>
Lnet/minecraft/class_4514;<init>(ILjava/util/Collection;Lnet/minecraft/class_6880;)V
official <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 theindex
record component.- Returns:
- the value of the
index
record component
-
states
Returns the value of thestates
record component.- Returns:
- the value of the
states
record component
-
environment
Returns the value of theenvironment
record component.- Returns:
- the value of the
environment
record component
-