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/TestFunctionintermediary net/minecraft/class_4529official trnamed batchIdintermediary comp_2218official anamed templatePathintermediary comp_2219official bnamed templateNameintermediary comp_2220official cnamed rotationintermediary comp_2221official dnamed tickLimitintermediary comp_2222official enamed setupTicksintermediary comp_2223official fnamed requiredintermediary comp_2224official gnamed manualOnlyintermediary comp_2445official hnamed maxAttemptsintermediary comp_2225official inamed requiredSuccessesintermediary comp_2226official jnamed skyAccessintermediary comp_2362official knamed starterintermediary comp_2227official l
-
Field Summary
FieldsModifier 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 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, 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 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()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
-
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. -
manualOnly
private final boolean manualOnlyThe field for themanualOnlyrecord 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 named <init>Lnet/minecraft/test/TestFunction;<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;)Vofficial <init>Ltr;<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 named <init>Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;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;)Vofficial <init>Ltr;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldmm;IJZLjava/util/function/Consumer;)V
-
TestFunction
public 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;)Vintermediary <init>Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZZIIZLjava/util/function/Consumer;)Vofficial <init>Ltr;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldmm;IJZZIIZLjava/util/function/Consumer;)V
-
-
Method Details
-
start
- Mappings:
Namespace Name Mixin selector named startLnet/minecraft/test/TestFunction;start(Lnet/minecraft/test/TestContext;)Vintermediary method_22297Lnet/minecraft/class_4529;method_22297(Lnet/minecraft/class_4516;)Vofficial aLtr;a(Lsw;)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 named isFlakyLnet/minecraft/test/TestFunction;isFlaky()Zintermediary method_32257Lnet/minecraft/class_4529;method_32257()Zofficial aLtr;a()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
-
manualOnly
public boolean manualOnly()Returns the value of themanualOnlyrecord component.- Returns:
- the value of the
manualOnlyrecord 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
-