Package net.minecraft.gametest.framework
Record Class TestFunction
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.TestFunction
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for thebatchNamerecord component.private final Consumer<GameTestHelper> The field for thefunctionrecord component.private final booleanThe field for themanualOnlyrecord component.private final intThe field for themaxAttemptsrecord component.private final intThe field for themaxTicksrecord component.private final booleanThe field for therequiredrecord component.private final intThe field for therequiredSuccessesrecord component.private final RotationThe field for therotationrecord component.private final longThe field for thesetupTicksrecord component.private final booleanThe field for theskyAccessrecord component.private final StringThe field for thestructureNamerecord component.private final StringThe field for thetestNamerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTestFunction(String p_177801_, String p_177802_, String p_177803_, int p_177804_, long p_177805_, boolean p_177806_, Consumer<GameTestHelper> p_177807_) TestFunction(String batchName, String testName, String structureName, Rotation rotation, int maxTicks, long setupTicks, boolean required, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess, Consumer<GameTestHelper> function) Creates an instance of aTestFunctionrecord class.TestFunction(String p_177820_, String p_177821_, String p_177822_, Rotation p_177823_, int p_177824_, long p_177825_, boolean p_177826_, Consumer<GameTestHelper> p_177827_) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thebatchNamerecord component.final booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.booleanisFlaky()booleanReturns the value of themanualOnlyrecord component.intReturns the value of themaxAttemptsrecord component.intmaxTicks()Returns the value of themaxTicksrecord component.booleanrequired()Returns the value of therequiredrecord component.intReturns the value of therequiredSuccessesrecord component.rotation()Returns the value of therotationrecord component.voidrun(GameTestHelper p_128077_) longReturns the value of thesetupTicksrecord component.booleanReturns the value of theskyAccessrecord component.Returns the value of thestructureNamerecord component.testName()Returns the value of thetestNamerecord component.toString()Returns a string representation of this record class.
- 
Field Details- 
batchNameThe field for thebatchNamerecord component.
- 
testNameThe field for thetestNamerecord component.
- 
structureNameThe field for thestructureNamerecord component.
- 
rotationThe field for therotationrecord component.
- 
maxTicksprivate final int maxTicksThe field for themaxTicksrecord component.
- 
setupTicksprivate final long setupTicksThe field for thesetupTicksrecord component.
- 
requiredprivate final boolean requiredThe field for therequiredrecord component.
- 
manualOnlyprivate final boolean manualOnlyThe field for themanualOnlyrecord component.
- 
maxAttemptsprivate final int maxAttemptsThe field for themaxAttemptsrecord component.
- 
requiredSuccessesprivate final int requiredSuccessesThe field for therequiredSuccessesrecord component.
- 
skyAccessprivate final boolean skyAccessThe field for theskyAccessrecord component.
- 
functionThe field for thefunctionrecord component.
 
- 
- 
Constructor Details- 
TestFunctionpublic TestFunction(String p_177801_, String p_177802_, String p_177803_, int p_177804_, long p_177805_, boolean p_177806_, Consumer<GameTestHelper> p_177807_) 
- 
TestFunction
- 
TestFunctionpublic TestFunction(String batchName, String testName, String structureName, Rotation rotation, int maxTicks, long setupTicks, boolean required, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess, Consumer<GameTestHelper> function) Creates an instance of aTestFunctionrecord class.- Parameters:
- batchName- the value for the- batchNamerecord component
- testName- the value for the- testNamerecord component
- structureName- the value for the- structureNamerecord component
- rotation- the value for the- rotationrecord component
- maxTicks- the value for the- maxTicksrecord component
- setupTicks- the value for the- setupTicksrecord component
- required- the value for the- requiredrecord component
- manualOnly- the value for the- manualOnlyrecord component
- maxAttempts- the value for the- maxAttemptsrecord component
- requiredSuccesses- the value for the- requiredSuccessesrecord component
- skyAccess- the value for the- skyAccessrecord component
- function- the value for the- functionrecord component
 
 
- 
- 
Method Details- 
run
- 
toStringReturns 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.
- 
isFlakypublic boolean isFlaky()
- 
hashCodepublic 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.
- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
batchNameReturns the value of thebatchNamerecord component.- Returns:
- the value of the batchNamerecord component
 
- 
testNameReturns the value of thetestNamerecord component.- Returns:
- the value of the testNamerecord component
 
- 
structureNameReturns the value of thestructureNamerecord component.- Returns:
- the value of the structureNamerecord component
 
- 
rotationReturns the value of therotationrecord component.- Returns:
- the value of the rotationrecord component
 
- 
maxTickspublic int maxTicks()Returns the value of themaxTicksrecord component.- Returns:
- the value of the maxTicksrecord component
 
- 
setupTickspublic long setupTicks()Returns the value of thesetupTicksrecord component.- Returns:
- the value of the setupTicksrecord component
 
- 
requiredpublic boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the requiredrecord component
 
- 
manualOnlypublic boolean manualOnly()Returns the value of themanualOnlyrecord component.- Returns:
- the value of the manualOnlyrecord component
 
- 
maxAttemptspublic int maxAttempts()Returns the value of themaxAttemptsrecord component.- Returns:
- the value of the maxAttemptsrecord component
 
- 
requiredSuccessespublic int requiredSuccesses()Returns the value of therequiredSuccessesrecord component.- Returns:
- the value of the requiredSuccessesrecord component
 
- 
skyAccesspublic boolean skyAccess()Returns the value of theskyAccessrecord component.- Returns:
- the value of the skyAccessrecord component
 
- 
functionReturns the value of thefunctionrecord component.- Returns:
- the value of the functionrecord component
 
 
-