Package net.minecraft.gametest.framework
Record Class GeneratedTest
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.GeneratedTest
public record GeneratedTest(Map<ResourceLocation,TestData<ResourceKey<TestEnvironmentDefinition>>> tests, ResourceKey<Consumer<GameTestHelper>> functionKey, Consumer<GameTestHelper> function)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer
<GameTestHelper> The field for thefunction
record component.private final ResourceKey
<Consumer<GameTestHelper>> The field for thefunctionKey
record component.private final Map
<ResourceLocation, TestData<ResourceKey<TestEnvironmentDefinition>>> The field for thetests
record component. -
Constructor Summary
ConstructorsConstructorDescriptionGeneratedTest
(Map<ResourceLocation, TestData<ResourceKey<TestEnvironmentDefinition>>> tests, ResourceKey<Consumer<GameTestHelper>> functionKey, Consumer<GameTestHelper> function) Creates an instance of aGeneratedTest
record class.GeneratedTest
(Map<ResourceLocation, TestData<ResourceKey<TestEnvironmentDefinition>>> p_397881_, ResourceLocation p_397734_, Consumer<GameTestHelper> p_397974_) GeneratedTest
(ResourceLocation p_397873_, TestData<ResourceKey<TestEnvironmentDefinition>> p_397065_, Consumer<GameTestHelper> p_397393_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.function()
Returns the value of thefunction
record component.Returns the value of thefunctionKey
record component.final int
hashCode()
Returns a hash code value for this object.tests()
Returns the value of thetests
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
tests
The field for thetests
record component. -
functionKey
The field for thefunctionKey
record component. -
function
The field for thefunction
record component.
-
-
Constructor Details
-
GeneratedTest
public GeneratedTest(Map<ResourceLocation, TestData<ResourceKey<TestEnvironmentDefinition>>> p_397881_, ResourceLocation p_397734_, Consumer<GameTestHelper> p_397974_) -
GeneratedTest
public GeneratedTest(ResourceLocation p_397873_, TestData<ResourceKey<TestEnvironmentDefinition>> p_397065_, Consumer<GameTestHelper> p_397393_) -
GeneratedTest
public GeneratedTest(Map<ResourceLocation, TestData<ResourceKey<TestEnvironmentDefinition>>> tests, ResourceKey<Consumer<GameTestHelper>> functionKey, Consumer<GameTestHelper> function) Creates an instance of aGeneratedTest
record class.- Parameters:
tests
- the value for thetests
record componentfunctionKey
- the value for thefunctionKey
record componentfunction
- the value for thefunction
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
tests
Returns the value of thetests
record component.- Returns:
- the value of the
tests
record component
-
functionKey
Returns the value of thefunctionKey
record component.- Returns:
- the value of the
functionKey
record component
-
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
record component
-