Record Class GameTestBatch

java.lang.Object
java.lang.Record
net.minecraft.test.GameTestBatch
Record Components:
id -
states -
beforeBatchFunction -
afterBatchFunction -

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

    • id

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

      private final Collection<GameTestState> states
      The field for the states record component.
    • beforeBatchFunction

      private final Consumer<ServerWorld> beforeBatchFunction
      The field for the beforeBatchFunction record component.
    • afterBatchFunction

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

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

    • GameTestBatch

      public GameTestBatch(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/GameTestBatch;<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
      official <init> Ltm;<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
    • states

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

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

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