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/TestEntry
intermediary net/minecraft/class_10663
official tj
named tests
intermediary comp_3535
official a
named functionKey
intermediary comp_3536
official b
named function
intermediary comp_3537
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer
<TestContext> The field for thefunction
record component.private final RegistryKey
<Consumer<TestContext>> The field for thefunctionKey
record component.private final Map
<Identifier, TestData<RegistryKey<TestEnvironmentDefinition>>> The field for thetests
record 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 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
-
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;)V
intermediary <init>
Lnet/minecraft/class_10663;<init>(Ljava/util/Map;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)V
official <init>
Ltj;<init>(Ljava/util/Map;Lame;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;)V
intermediary <init>
Lnet/minecraft/class_10663;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_10664;Ljava/util/function/Consumer;)V
official <init>
Ltj;<init>(Lame;Ltt;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;)V
intermediary <init>
Lnet/minecraft/class_10663;<init>(Ljava/util/Map;Lnet/minecraft/class_5321;Ljava/util/function/Consumer;)V
official <init>
Ltj;<init>(Ljava/util/Map;Lamd;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 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
-