Record Class TestEnvironmentDefinition.Weather
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.TestEnvironmentDefinition.Weather
- All Implemented Interfaces:
TestEnvironmentDefinition<TestEnvironmentDefinition.Weather.Type>
- Enclosing interface:
TestEnvironmentDefinition<SavedDataType>
public static record TestEnvironmentDefinition.Weather(TestEnvironmentDefinition.Weather.Type weather)
extends Record
implements TestEnvironmentDefinition<TestEnvironmentDefinition.Weather.Type>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface TestEnvironmentDefinition
TestEnvironmentDefinition.Activation<T>, TestEnvironmentDefinition.AllOf, TestEnvironmentDefinition.ClockTime, TestEnvironmentDefinition.Functions, TestEnvironmentDefinition.SetGameRules, TestEnvironmentDefinition.Weather -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TestEnvironmentDefinition.Weather> private final TestEnvironmentDefinition.Weather.TypeThe field for theweatherrecord component.Fields inherited from interface TestEnvironmentDefinition
DIRECT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aWeatherrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<TestEnvironmentDefinition.Weather> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.setup(ServerLevel level) voidteardown(ServerLevel level, TestEnvironmentDefinition.Weather.Type saveData) final StringtoString()Returns a string representation of this record class.weather()Returns the value of theweatherrecord component.
-
Field Details
-
weather
The field for theweatherrecord component. -
CODEC
-
-
Constructor Details
-
Weather
Creates an instance of aWeatherrecord class.- Parameters:
weather- the value for theweatherrecord component
-
-
Method Details
-
setup
- Specified by:
setupin interfaceTestEnvironmentDefinition<TestEnvironmentDefinition.Weather.Type>
-
teardown
- Specified by:
teardownin interfaceTestEnvironmentDefinition<TestEnvironmentDefinition.Weather.Type>
-
codec
- Specified by:
codecin interfaceTestEnvironmentDefinition<TestEnvironmentDefinition.Weather.Type>
-
toString
-
hashCode
-
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). -
weather
Returns the value of theweatherrecord component.- Returns:
- the value of the
weatherrecord component
-