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/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 Summary
Modifier and TypeFieldDescriptionprivate final Consumer
<ServerWorld> The field for theafterBatchFunction
record component.private final Consumer
<ServerWorld> The field for thebeforeBatchFunction
record component.static final String
private final String
The field for theid
record component.private final Collection
<GameTestState> The field for thestates
record component. -
Constructor Summary
ConstructorDescriptionGameTestBatch
(String id, Collection<GameTestState> testFunctions, Consumer<ServerWorld> beforeBatchConsumer, Consumer<ServerWorld> afterBatchConsumer) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterBatchFunction
record component.Returns the value of thebeforeBatchFunction
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.states()
Returns the value of thestates
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
states
The field for thestates
record component. -
beforeBatchFunction
The field for thebeforeBatchFunction
record component. -
afterBatchFunction
The field for theafterBatchFunction
record component. -
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
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 theid
record component.- Returns:
- the value of the
id
record component
-
states
Returns the value of thestates
record component.- Returns:
- the value of the
states
record component
-
beforeBatchFunction
Returns the value of thebeforeBatchFunction
record component.- Returns:
- the value of the
beforeBatchFunction
record component
-
afterBatchFunction
Returns the value of theafterBatchFunction
record component.- Returns:
- the value of the
afterBatchFunction
record component
-