Record Class BatchDefinition
java.lang.Object
java.lang.Record
net.thomilist.dimensionalinventories.gametest.util.BatchDefinition
- All Implemented Interfaces:
net.minecraft.gametest.framework.TestEnvironmentDefinition<Integer>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.gametest.framework.TestEnvironmentDefinition
net.minecraft.gametest.framework.TestEnvironmentDefinition.Activation<T>, net.minecraft.gametest.framework.TestEnvironmentDefinition.AllOf, net.minecraft.gametest.framework.TestEnvironmentDefinition.ClockTime, net.minecraft.gametest.framework.TestEnvironmentDefinition.Functions, net.minecraft.gametest.framework.TestEnvironmentDefinition.SetGameRules, net.minecraft.gametest.framework.TestEnvironmentDefinition.Timelines, net.minecraft.gametest.framework.TestEnvironmentDefinition.Weather -
Field Summary
FieldsFields inherited from interface net.minecraft.gametest.framework.TestEnvironmentDefinition
DIRECT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBatchDefinition(int batchNumber) Creates an instance of aBatchDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchNumberrecord component.@NonNull com.mojang.serialization.MapCodec<BatchDefinition> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull Integersetup(@NonNull net.minecraft.server.level.ServerLevel world) voidfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BatchDefinition
public BatchDefinition(int batchNumber) Creates an instance of aBatchDefinitionrecord class.- Parameters:
batchNumber- the value for thebatchNumberrecord component
-
-
Method Details
-
setup
-
teardown
-
codec
- Specified by:
codecin interfacenet.minecraft.gametest.framework.TestEnvironmentDefinition<Integer>
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
batchNumber
public int batchNumber()Returns the value of thebatchNumberrecord component.- Returns:
- the value of the
batchNumberrecord component
-