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 Details Link icon

  • Constructor Details Link icon

    • GameTestBatch Link icon

      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 Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • index Link icon

      public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • states Link icon

      public Collection<GameTestState> states()
      Returns the value of the states record component.
      Returns:
      the value of the states record component
    • environment Link icon

      Returns the value of the environment record component.
      Returns:
      the value of the environment record component