Package net.minecraft.test
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 rmintermediary net/minecraft/class_4514named net/minecraft/test/GameTestBatchofficial bintermediary comp_2209named idofficial cintermediary comp_2210named gameTestInfosofficial dintermediary comp_2211named beforeBatchConsumerofficial eintermediary comp_2212named afterBatchConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer<ServerWorld>The field for theafterBatchConsumerrecord component.private final Consumer<ServerWorld>The field for thebeforeBatchConsumerrecord component.static final Stringprivate final Collection<GameTestState>The field for thegameTestInfosrecord component.private final StringThe field for theidrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGameTestBatch(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterBatchConsumerrecord component.Returns the value of thebeforeBatchConsumerrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameTestInfosrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
gameTestInfos
The field for thegameTestInfosrecord component. -
beforeBatchConsumer
The field for thebeforeBatchConsumerrecord component. -
afterBatchConsumer
The field for theafterBatchConsumerrecord component. -
DEFAULT_BATCH
- See Also:
- Mappings:
Namespace Name Mixin selector official aLrm;a:Ljava/lang/String;intermediary field_33145Lnet/minecraft/class_4514;field_33145:Ljava/lang/String;named DEFAULT_BATCHLnet/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;)Vintermediary <init>Lnet/minecraft/class_4514;<init>(Ljava/lang/String;Ljava/util/Collection;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/test/GameTestBatch;<init>(Ljava/lang/String;Ljava/util/Collection;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
gameTestInfos
Returns the value of thegameTestInfosrecord component.- Returns:
- the value of the
gameTestInfosrecord component
-
beforeBatchConsumer
Returns the value of thebeforeBatchConsumerrecord component.- Returns:
- the value of the
beforeBatchConsumerrecord component
-
afterBatchConsumer
Returns the value of theafterBatchConsumerrecord component.- Returns:
- the value of the
afterBatchConsumerrecord component
-