Record Class BatchDefinition
java.lang.Object
java.lang.Record
net.thomilist.dimensionalinventories.gametest.util.BatchDefinition
- All Implemented Interfaces:
net.minecraft.test.TestEnvironmentDefinition
public record BatchDefinition(int batchNumber)
extends Record
implements net.minecraft.test.TestEnvironmentDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.test.TestEnvironmentDefinition
net.minecraft.test.TestEnvironmentDefinition.AllOf, net.minecraft.test.TestEnvironmentDefinition.Function, net.minecraft.test.TestEnvironmentDefinition.GameRules, net.minecraft.test.TestEnvironmentDefinition.TimeOfDay, net.minecraft.test.TestEnvironmentDefinition.Weather -
Field Summary
FieldsFields inherited from interface net.minecraft.test.TestEnvironmentDefinition
ENTRY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBatchDefinition(int batchNumber) Creates an instance of aBatchDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<BatchDefinition> getCodec()final inthashCode()Returns a hash code value for this object.voidsetup(net.minecraft.server.world.ServerWorld world) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.test.TestEnvironmentDefinition
teardown
-
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
public void setup(net.minecraft.server.world.ServerWorld world) - Specified by:
setupin interfacenet.minecraft.test.TestEnvironmentDefinition
-
getCodec
- Specified by:
getCodecin interfacenet.minecraft.test.TestEnvironmentDefinition
-
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
-