Package net.minecraft.gametest.framework
Record Class TestFunction
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.TestFunction
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The field for thebatchName
record component.private final Consumer
<GameTestHelper> The field for thefunction
record component.private final boolean
The field for themanualOnly
record component.private final int
The field for themaxAttempts
record component.private final int
The field for themaxTicks
record component.private final boolean
The field for therequired
record component.private final int
The field for therequiredSuccesses
record component.private final Rotation
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 String
The field for thestructureName
record component.private final String
The field for thetestName
record component. -
Constructor Summary
ConstructorDescriptionTestFunction
(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 aTestFunction
record 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 Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchName
record component.final boolean
Indicates whether some other object is "equal to" this one.function()
Returns the value of thefunction
record component.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.int
maxTicks()
Returns the value of themaxTicks
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.void
run
(GameTestHelper p_128077_) long
Returns the value of thesetupTicks
record component.boolean
Returns the value of theskyAccess
record component.Returns the value of thestructureName
record component.testName()
Returns the value of thetestName
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
batchName
The field for thebatchName
record component. -
testName
The field for thetestName
record component. -
structureName
The field for thestructureName
record component. -
rotation
The field for therotation
record component. -
maxTicks
private final int maxTicksThe field for themaxTicks
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. -
function
The field for thefunction
record component.
-
-
Constructor Details
-
TestFunction
public TestFunction(String p_177801_, String p_177802_, String p_177803_, int p_177804_, long p_177805_, boolean p_177806_, Consumer<GameTestHelper> p_177807_) -
TestFunction
-
TestFunction
public 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 aTestFunction
record class.- Parameters:
batchName
- the value for thebatchName
record componenttestName
- the value for thetestName
record componentstructureName
- the value for thestructureName
record componentrotation
- the value for therotation
record componentmaxTicks
- the value for themaxTicks
record componentsetupTicks
- the value for thesetupTicks
record componentrequired
- the value for therequired
record componentmanualOnly
- the value for themanualOnly
record componentmaxAttempts
- the value for themaxAttempts
record componentrequiredSuccesses
- the value for therequiredSuccesses
record componentskyAccess
- the value for theskyAccess
record componentfunction
- the value for thefunction
record component
-
-
Method Details
-
run
-
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() -
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 '=='. -
batchName
Returns the value of thebatchName
record component.- Returns:
- the value of the
batchName
record component
-
testName
Returns the value of thetestName
record component.- Returns:
- the value of the
testName
record component
-
structureName
Returns the value of thestructureName
record component.- Returns:
- the value of the
structureName
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
maxTicks
public int maxTicks()Returns the value of themaxTicks
record component.- Returns:
- the value of the
maxTicks
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
-
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
record component
-