Package net.minecraft.gametest.framework
Record Class TestEnvironmentDefinition.AllOf
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.TestEnvironmentDefinition.AllOf
- All Implemented Interfaces:
TestEnvironmentDefinition
- Enclosing interface:
TestEnvironmentDefinition
public static record TestEnvironmentDefinition.AllOf(List<Holder<TestEnvironmentDefinition>> definitions)
extends Record
implements TestEnvironmentDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.gametest.framework.TestEnvironmentDefinition
TestEnvironmentDefinition.AllOf, TestEnvironmentDefinition.Functions, TestEnvironmentDefinition.SetGameRules, TestEnvironmentDefinition.TimeOfDay, TestEnvironmentDefinition.Weather
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TestEnvironmentDefinition.AllOf> private final List
<Holder<TestEnvironmentDefinition>> The field for thedefinitions
record component.Fields inherited from interface net.minecraft.gametest.framework.TestEnvironmentDefinition
DIRECT_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionAllOf
(List<Holder<TestEnvironmentDefinition>> definitions) Creates an instance of aAllOf
record class.AllOf
(TestEnvironmentDefinition... p_398055_) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<TestEnvironmentDefinition.AllOf> codec()
Returns the value of thedefinitions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
setup
(ServerLevel p_397476_) void
teardown
(ServerLevel p_397650_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
definitions
The field for thedefinitions
record component. -
CODEC
-
-
Constructor Details
-
AllOf
-
AllOf
Creates an instance of aAllOf
record class.- Parameters:
definitions
- the value for thedefinitions
record component
-
-
Method Details
-
setup
- Specified by:
setup
in interfaceTestEnvironmentDefinition
-
teardown
- Specified by:
teardown
in interfaceTestEnvironmentDefinition
-
codec
- Specified by:
codec
in interfaceTestEnvironmentDefinition
-
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)
. -
definitions
Returns the value of thedefinitions
record component.- Returns:
- the value of the
definitions
record component
-