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 ui
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 Summary
Modifier and TypeFieldDescriptionprivate final String
The field for thebatchId
record component.private final boolean
The field for themanualOnly
record component.private final int
The field for themaxAttempts
record component.private final boolean
The field for therequired
record component.private final int
The field for therequiredSuccesses
record component.private final BlockRotation
The field for therotation
record component.private final long
The field for thesetupTicks
record component.private final boolean
The field for theskyAccess
record component.private final Consumer
<TestContext> The field for thestarter
record component.private final String
The field for thetemplateName
record component.private final String
The field for thetemplatePath
record component.private final int
The field for thetickLimit
record component. -
Constructor Summary
ConstructorDescriptionTestFunction
(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 thebatchId
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isFlaky()
boolean
Returns the value of themanualOnly
record component.int
Returns the value of themaxAttempts
record component.boolean
required()
Returns the value of therequired
record component.int
Returns the value of therequiredSuccesses
record component.rotation()
Returns the value of therotation
record component.long
Returns the value of thesetupTicks
record component.boolean
Returns the value of theskyAccess
record component.void
start
(TestContext context) starter()
Returns the value of thestarter
record component.Returns the value of thetemplateName
record component.Returns the value of thetemplatePath
record component.int
Returns the value of thetickLimit
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
batchId
The field for thebatchId
record component. -
templatePath
The field for thetemplatePath
record component. -
templateName
The field for thetemplateName
record component. -
rotation
The field for therotation
record component. -
tickLimit
private final int tickLimitThe field for thetickLimit
record component. -
setupTicks
private final long setupTicksThe field for thesetupTicks
record component. -
required
private final boolean requiredThe field for therequired
record component. -
manualOnly
private final boolean manualOnlyThe field for themanualOnly
record component. -
maxAttempts
private final int maxAttemptsThe field for themaxAttempts
record component. -
requiredSuccesses
private final int requiredSuccessesThe field for therequiredSuccesses
record component. -
skyAccess
private final boolean skyAccessThe field for theskyAccess
record component. -
starter
The field for thestarter
record 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;)V
intermediary <init>
Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
official <init>
Lui;<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;)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>
Lui;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldln;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;)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>
Lui;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldln;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
Lui;a(Ltn;)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 isFlaky
Lnet/minecraft/test/TestFunction;isFlaky()Z
intermediary method_32257
Lnet/minecraft/class_4529;method_32257()Z
official a
Lui;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 thebatchId
record component.- Returns:
- the value of the
batchId
record component
-
templatePath
Returns the value of thetemplatePath
record component.- Returns:
- the value of the
templatePath
record component
-
templateName
Returns the value of thetemplateName
record component.- Returns:
- the value of the
templateName
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
tickLimit
public int tickLimit()Returns the value of thetickLimit
record component.- Returns:
- the value of the
tickLimit
record component
-
setupTicks
public long setupTicks()Returns the value of thesetupTicks
record component.- Returns:
- the value of the
setupTicks
record component
-
required
public boolean required()Returns the value of therequired
record component.- Returns:
- the value of the
required
record component
-
manualOnly
public boolean manualOnly()Returns the value of themanualOnly
record component.- Returns:
- the value of the
manualOnly
record component
-
maxAttempts
public int maxAttempts()Returns the value of themaxAttempts
record component.- Returns:
- the value of the
maxAttempts
record component
-
requiredSuccesses
public int requiredSuccesses()Returns the value of therequiredSuccesses
record component.- Returns:
- the value of the
requiredSuccesses
record component
-
skyAccess
public boolean skyAccess()Returns the value of theskyAccess
record component.- Returns:
- the value of the
skyAccess
record component
-
starter
Returns the value of thestarter
record component.- Returns:
- the value of the
starter
record component
-