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-maxAttempts-requiredSuccesses-skyAccess-starter-
public record TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, int maxAttempts, int requiredSuccesses, boolean skyAccess, Consumer<TestContext> starter)
extends Record
- Mappings:
Namespace Name official sqintermediary net/minecraft/class_4529named net/minecraft/test/TestFunctionofficial aintermediary comp_2218named batchIdofficial bintermediary comp_2219named templatePathofficial cintermediary comp_2220named templateNameofficial dintermediary comp_2221named rotationofficial eintermediary comp_2222named tickLimitofficial fintermediary comp_2223named setupTicksofficial gintermediary comp_2224named requiredofficial hintermediary comp_2225named maxAttemptsofficial iintermediary comp_2226named requiredSuccessesofficial jintermediary comp_2362named skyAccessofficial kintermediary comp_2227named starter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thebatchIdrecord 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 Summary
ConstructorsConstructorDescriptionTestFunction(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, int requiredSuccesses, int maxAttempts, boolean bool, Consumer<TestContext> consumer) TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, Consumer<TestContext> starter) -
Method Summary
Modifier 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()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
-
batchId
The field for thebatchIdrecord component. -
templatePath
The field for thetemplatePathrecord component. -
templateName
The field for thetemplateNamerecord component. -
rotation
The field for therotationrecord component. -
tickLimit
private final int tickLimitThe field for thetickLimitrecord component. -
setupTicks
private final long setupTicksThe field for thesetupTicksrecord component. -
required
private final boolean requiredThe field for therequiredrecord component. -
maxAttempts
private final int maxAttemptsThe field for themaxAttemptsrecord component. -
requiredSuccesses
private final int requiredSuccessesThe field for therequiredSuccessesrecord component. -
skyAccess
private final boolean skyAccessThe field for theskyAccessrecord component. -
starter
The field for thestarterrecord component.
-
-
Constructor Details
-
TestFunction
public TestFunction(String batchId, String templatePath, String templateName, int tickLimit, long duration, boolean required, Consumer<TestContext> starter) - Mappings:
Namespace Name Mixin selector official <init>Lsq;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
-
TestFunction
public TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, Consumer<TestContext> starter) - Mappings:
Namespace Name Mixin selector official <init>Lsq;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldgo;IJZLjava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZLjava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZLjava/util/function/Consumer;)V
-
TestFunction
public TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long duration, boolean required, int requiredSuccesses, int maxAttempts, boolean bool, Consumer<TestContext> consumer) - Mappings:
Namespace Name Mixin selector official <init>Lsq;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldgo;IJZIIZLjava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZIIZLjava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZIIZLjava/util/function/Consumer;)V
-
-
Method Details
-
start
- Mappings:
Namespace Name Mixin selector official aLsq;a(Lrv;)Vintermediary method_22297Lnet/minecraft/class_4529;method_22297(Lnet/minecraft/class_4516;)Vnamed startLnet/minecraft/test/TestFunction;start(Lnet/minecraft/test/TestContext;)V
-
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. -
isFlaky
public boolean isFlaky()- Mappings:
Namespace Name Mixin selector official aLsq;a()Zintermediary method_32257Lnet/minecraft/class_4529;method_32257()Znamed isFlakyLnet/minecraft/test/TestFunction;isFlaky()Z
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
batchId
Returns the value of thebatchIdrecord component.- Returns:
- the value of the
batchIdrecord component
-
templatePath
Returns the value of thetemplatePathrecord component.- Returns:
- the value of the
templatePathrecord component
-
templateName
Returns the value of thetemplateNamerecord component.- Returns:
- the value of the
templateNamerecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
tickLimit
public int tickLimit()Returns the value of thetickLimitrecord component.- Returns:
- the value of the
tickLimitrecord component
-
setupTicks
public long setupTicks()Returns the value of thesetupTicksrecord component.- Returns:
- the value of the
setupTicksrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
maxAttempts
public int maxAttempts()Returns the value of themaxAttemptsrecord component.- Returns:
- the value of the
maxAttemptsrecord component
-
requiredSuccesses
public int requiredSuccesses()Returns the value of therequiredSuccessesrecord component.- Returns:
- the value of the
requiredSuccessesrecord component
-
skyAccess
public boolean skyAccess()Returns the value of theskyAccessrecord component.- Returns:
- the value of the
skyAccessrecord component
-
starter
Returns the value of thestarterrecord component.- Returns:
- the value of the
starterrecord component
-