Package net.minecraft.test
Record Class TestEntry
java.lang.Object
java.lang.Record
net.minecraft.test.TestEntry
- Record Components:
tests-functionKey-function-
public record TestEntry(Map<Identifier,TestData<RegistryKey<TestEnvironmentDefinition>>> tests, RegistryKey<Consumer<TestContext>> functionKey, Consumer<TestContext> function)
extends Record
- Mappings:
Namespace Name named net/minecraft/test/TestEntryintermediary net/minecraft/class_10663official tbnamed testsintermediary comp_3535official anamed functionKeyintermediary comp_3536official bnamed functionintermediary comp_3537official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer<TestContext> The field for thefunctionrecord component.private final RegistryKey<Consumer<TestContext>> The field for thefunctionKeyrecord component.private final Map<Identifier, TestData<RegistryKey<TestEnvironmentDefinition>>> The field for thetestsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestEntry(Map<Identifier, TestData<RegistryKey<TestEnvironmentDefinition>>> map, RegistryKey<Consumer<TestContext>> registryKey, Consumer<TestContext> function) TestEntry(Map<Identifier, TestData<RegistryKey<TestEnvironmentDefinition>>> tests, Identifier functionId, Consumer<TestContext> function) TestEntry(Identifier id, TestData<RegistryKey<TestEnvironmentDefinition>> data, Consumer<TestContext> function) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.Returns the value of thefunctionKeyrecord component.final inthashCode()Returns a hash code value for this object.tests()Returns the value of thetestsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
tests
The field for thetestsrecord component. -
functionKey
The field for thefunctionKeyrecord component. -
function
The field for thefunctionrecord component.
-
-
Constructor Details
-
TestEntry
public TestEntry(Map<Identifier, TestData<RegistryKey<TestEnvironmentDefinition>>> tests, Identifier functionId, Consumer<TestContext> function) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/TestEntry;<init>(Ljava/util/Map;Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_10663;<init>(Ljava/util/Map;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Vofficial <init>Ltb;<init>(Ljava/util/Map;Lalr;Ljava/util/function/Consumer;)V
-
TestEntry
public TestEntry(Identifier id, TestData<RegistryKey<TestEnvironmentDefinition>> data, Consumer<TestContext> function) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/TestEntry;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/test/TestData;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_10663;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_10664;Ljava/util/function/Consumer;)Vofficial <init>Ltb;<init>(Lalr;Ltl;Ljava/util/function/Consumer;)V
-
TestEntry
public TestEntry(Map<Identifier, TestData<RegistryKey<TestEnvironmentDefinition>>> map, RegistryKey<Consumer<TestContext>> registryKey, Consumer<TestContext> function) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/TestEntry;<init>(Ljava/util/Map;Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_10663;<init>(Ljava/util/Map;Lnet/minecraft/class_5321;Ljava/util/function/Consumer;)Vofficial <init>Ltb;<init>(Ljava/util/Map;Lalq;Ljava/util/function/Consumer;)V
-
-
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 thetestsrecord component.- Returns:
- the value of the
testsrecord component
-
functionKey
Returns the value of thefunctionKeyrecord component.- Returns:
- the value of the
functionKeyrecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-