Record Class GameTestBatch

java.lang.Object
java.lang.Record
net.minecraft.test.GameTestBatch
Record Components:
id -
gameTestInfos -
beforeBatchConsumer -
afterBatchConsumer -

public record GameTestBatch(String id, Collection<GameTestState> gameTestInfos, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) extends Record
Mappings:
Namespace Name
official rm
intermediary net/minecraft/class_4514
named net/minecraft/test/GameTestBatch
official b
intermediary comp_2209
named id
official c
intermediary comp_2210
named gameTestInfos
official d
intermediary comp_2211
named beforeBatchConsumer
official e
intermediary comp_2212
named afterBatchConsumer
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • gameTestInfos

      private final Collection<GameTestState> gameTestInfos
      The field for the gameTestInfos record component.
    • beforeBatchConsumer

      private final Consumer<ServerWorld> beforeBatchConsumer
      The field for the beforeBatchConsumer record component.
    • afterBatchConsumer

      private final Consumer<ServerWorld> afterBatchConsumer
      The field for the afterBatchConsumer record component.
    • DEFAULT_BATCH

      public static final String DEFAULT_BATCH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lrm;a:Ljava/lang/String;
      intermediary field_33145 Lnet/minecraft/class_4514;field_33145:Ljava/lang/String;
      named DEFAULT_BATCH Lnet/minecraft/test/GameTestBatch;DEFAULT_BATCH:Ljava/lang/String;
  • Constructor Details

    • GameTestBatch

      public GameTestBatch(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrm;<init>(Ljava/lang/String;Ljava/util/Collection;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_4514;<init>(Ljava/lang/String;Ljava/util/Collection;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V
      named <init> Lnet/minecraft/test/GameTestBatch;<init>(Ljava/lang/String;Ljava/util/Collection;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V
  • Method Details

    • toString

      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

      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

      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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • gameTestInfos

      public Collection<GameTestState> gameTestInfos()
      Returns the value of the gameTestInfos record component.
      Returns:
      the value of the gameTestInfos record component
    • beforeBatchConsumer

      public Consumer<ServerWorld> beforeBatchConsumer()
      Returns the value of the beforeBatchConsumer record component.
      Returns:
      the value of the beforeBatchConsumer record component
    • afterBatchConsumer

      public Consumer<ServerWorld> afterBatchConsumer()
      Returns the value of the afterBatchConsumer record component.
      Returns:
      the value of the afterBatchConsumer record component