Package net.minecraft.test
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/GameTestBatchintermediary net/minecraft/class_4514official srnamed idintermediary comp_2209official bnamed statesintermediary comp_2210official cnamed beforeBatchFunctionintermediary comp_2211official dnamed afterBatchFunctionintermediary comp_2212official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer<ServerWorld> The field for theafterBatchFunctionrecord component.private final Consumer<ServerWorld> The field for thebeforeBatchFunctionrecord component.static final Stringprivate final StringThe field for theidrecord component.private final Collection<GameTestState> The field for thestatesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGameTestBatch(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterBatchFunctionrecord component.Returns the value of thebeforeBatchFunctionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.states()Returns the value of thestatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
states
The field for thestatesrecord component. -
beforeBatchFunction
The field for thebeforeBatchFunctionrecord component. -
afterBatchFunction
The field for theafterBatchFunctionrecord component. -
DEFAULT_BATCH
- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_BATCHLnet/minecraft/test/GameTestBatch;DEFAULT_BATCH:Ljava/lang/String;intermediary field_33145Lnet/minecraft/class_4514;field_33145:Ljava/lang/String;official aLsr;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;)Vintermediary <init>Lnet/minecraft/class_4514;<init>(Ljava/lang/String;Ljava/util/Collection;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Vofficial <init>Lsr;<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
-
states
Returns the value of thestatesrecord component.- Returns:
- the value of the
statesrecord component
-
beforeBatchFunction
Returns the value of thebeforeBatchFunctionrecord component.- Returns:
- the value of the
beforeBatchFunctionrecord component
-
afterBatchFunction
Returns the value of theafterBatchFunctionrecord component.- Returns:
- the value of the
afterBatchFunctionrecord component
-