Package net.minecraft.test
Record Class TestFunction
java.lang.Object
java.lang.Record
net.minecraft.test.TestFunction
- Record Components:
- batchId-
- templatePath-
- templateName-
- rotation-
- tickLimit-
- setupTicks-
- required-
- manualOnly-
- maxAttempts-
- requiredSuccesses-
- skyAccess-
- starter-
public record TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess, Consumer<TestContext> starter)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/test/TestFunction- intermediary - net/minecraft/class_4529- official - tf- named - batchId- intermediary - comp_2218- official - a- named - templatePath- intermediary - comp_2219- official - b- named - templateName- intermediary - comp_2220- official - c- named - rotation- intermediary - comp_2221- official - d- named - tickLimit- intermediary - comp_2222- official - e- named - setupTicks- intermediary - comp_2223- official - f- named - required- intermediary - comp_2224- official - g- named - manualOnly- intermediary - comp_2445- official - h- named - maxAttempts- intermediary - comp_2225- official - i- named - requiredSuccesses- intermediary - comp_2226- official - j- named - skyAccess- intermediary - comp_2362- official - k- named - starter- intermediary - comp_2227- official - l
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for thebatchIdrecord component.private final booleanThe field for themanualOnlyrecord component.private final intThe field for themaxAttemptsrecord component.private final booleanThe field for therequiredrecord component.private final intThe field for therequiredSuccessesrecord component.private final BlockRotationThe field for therotationrecord component.private final longThe field for thesetupTicksrecord component.private final booleanThe field for theskyAccessrecord component.private final Consumer<TestContext> The field for thestarterrecord component.private final StringThe field for thetemplateNamerecord component.private final StringThe field for thetemplatePathrecord component.private final intThe field for thetickLimitrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTestFunction(String batchId, String templatePath, String templateName, int tickLimit, long duration, boolean required, Consumer<TestContext> starter) TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long duration, boolean required, boolean bool, int int2, int int3, boolean bool2, Consumer<TestContext> consumer) TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, Consumer<TestContext> starter) 
- 
Method SummaryModifier and TypeMethodDescriptionbatchId()Returns the value of thebatchIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFlaky()booleanReturns the value of themanualOnlyrecord component.intReturns the value of themaxAttemptsrecord component.booleanrequired()Returns the value of therequiredrecord component.intReturns the value of therequiredSuccessesrecord component.rotation()Returns the value of therotationrecord component.longReturns the value of thesetupTicksrecord component.booleanReturns the value of theskyAccessrecord component.voidstart(TestContext context) starter()Returns the value of thestarterrecord component.Returns the value of thetemplateNamerecord component.Returns the value of thetemplatePathrecord component.intReturns the value of thetickLimitrecord component.toString()Returns a string representation of this record class.
- 
Field Details- 
batchIdThe field for thebatchIdrecord component.
- 
templatePathThe field for thetemplatePathrecord component.
- 
templateNameThe field for thetemplateNamerecord component.
- 
rotationThe field for therotationrecord component.
- 
tickLimitprivate final int tickLimitThe field for thetickLimitrecord 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.
- 
starterThe field for thestarterrecord component.
 
- 
- 
Constructor Details- 
TestFunctionpublic TestFunction(String batchId, String templatePath, String templateName, int tickLimit, long duration, boolean required, Consumer<TestContext> starter) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V- intermediary - <init>- Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V- official - <init>- Ltf;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
 
- 
TestFunctionpublic TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, Consumer<TestContext> starter) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZLjava/util/function/Consumer;)V- intermediary - <init>- Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZLjava/util/function/Consumer;)V- official - <init>- Ltf;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldqf;IJZLjava/util/function/Consumer;)V
 
- 
TestFunctionpublic TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long duration, boolean required, boolean bool, int int2, int int3, boolean bool2, Consumer<TestContext> consumer) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZZIIZLjava/util/function/Consumer;)V- intermediary - <init>- Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZZIIZLjava/util/function/Consumer;)V- official - <init>- Ltf;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldqf;IJZZIIZLjava/util/function/Consumer;)V
 
 
- 
- 
Method Details- 
start- Mappings:
- Namespace - Name - Mixin selector - named - start- Lnet/minecraft/test/TestFunction;start(Lnet/minecraft/test/TestContext;)V- intermediary - method_22297- Lnet/minecraft/class_4529;method_22297(Lnet/minecraft/class_4516;)V- official - a- Ltf;a(Lsk;)V
 
- 
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()- Mappings:
- Namespace - Name - Mixin selector - named - isFlaky- Lnet/minecraft/test/TestFunction;isFlaky()Z- intermediary - method_32257- Lnet/minecraft/class_4529;method_32257()Z- official - a- Ltf;a()Z
 
- 
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 '=='.
- 
batchIdReturns the value of thebatchIdrecord component.- Returns:
- the value of the batchIdrecord component
 
- 
templatePathReturns the value of thetemplatePathrecord component.- Returns:
- the value of the templatePathrecord component
 
- 
templateNameReturns the value of thetemplateNamerecord component.- Returns:
- the value of the templateNamerecord component
 
- 
rotationReturns the value of therotationrecord component.- Returns:
- the value of the rotationrecord component
 
- 
tickLimitpublic int tickLimit()Returns the value of thetickLimitrecord component.- Returns:
- the value of the tickLimitrecord 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
 
- 
starterReturns the value of thestarterrecord component.- Returns:
- the value of the starterrecord component
 
 
-