Record Class GameTestData
java.lang.Object
java.lang.Record
net.neoforged.testframework.gametest.GameTestData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable String
The field for thebatchName
record component.private final Consumer
<GameTestHelper> The field for thefunction
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. -
Constructor Summary
ConstructorDescriptionGameTestData
(@Nullable String batchName, String structureName, boolean required, int maxAttempts, int requiredSuccesses, Consumer<GameTestHelper> function, int maxTicks, long setupTicks, Rotation rotation, boolean skyAccess) Creates an instance of aGameTestData
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns 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.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.long
Returns the value of thesetupTicks
record component.boolean
Returns the value of theskyAccess
record component.Returns the value of thestructureName
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
batchName
The field for thebatchName
record component. -
structureName
The field for thestructureName
record component. -
required
private final boolean requiredThe field for therequired
record component. -
maxAttempts
private final int maxAttemptsThe field for themaxAttempts
record component. -
requiredSuccesses
private final int requiredSuccessesThe field for therequiredSuccesses
record component. -
function
The field for thefunction
record component. -
maxTicks
private final int maxTicksThe field for themaxTicks
record component. -
setupTicks
private final long setupTicksThe field for thesetupTicks
record component. -
rotation
The field for therotation
record component. -
skyAccess
private final boolean skyAccessThe field for theskyAccess
record component.
-
-
Constructor Details
-
GameTestData
public GameTestData(@Nullable @Nullable String batchName, String structureName, boolean required, int maxAttempts, int requiredSuccesses, Consumer<GameTestHelper> function, int maxTicks, long setupTicks, Rotation rotation, boolean skyAccess) Creates an instance of aGameTestData
record class.- Parameters:
batchName
- the value for thebatchName
record componentstructureName
- the value for thestructureName
record componentrequired
- the value for therequired
record componentmaxAttempts
- the value for themaxAttempts
record componentrequiredSuccesses
- the value for therequiredSuccesses
record componentfunction
- the value for thefunction
record componentmaxTicks
- the value for themaxTicks
record componentsetupTicks
- the value for thesetupTicks
record componentrotation
- the value for therotation
record componentskyAccess
- the value for theskyAccess
record component
-
-
Method Details
-
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. -
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
-
structureName
Returns the value of thestructureName
record component.- Returns:
- the value of the
structureName
record component
-
required
public boolean required()Returns the value of therequired
record component.- Returns:
- the value of the
required
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
-
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
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
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
skyAccess
public boolean skyAccess()Returns the value of theskyAccess
record component.- Returns:
- the value of the
skyAccess
record component
-