Package net.minecraft.world.level
Record Class WorldDataConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.WorldDataConfiguration
public record WorldDataConfiguration(DataPackConfig dataPacks, FeatureFlagSet enabledFeatures)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldDataConfiguration>
private final DataPackConfig
The field for thedataPacks
record component.static final WorldDataConfiguration
static final String
private final FeatureFlagSet
The field for theenabledFeatures
record component. -
Constructor Summary
ConstructorDescriptionWorldDataConfiguration
(DataPackConfig dataPacks, FeatureFlagSet enabledFeatures) Creates an instance of aWorldDataConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataPacks
record component.Returns the value of theenabledFeatures
record component.final boolean
Indicates whether some other object is "equal to" this one.expandFeatures
(FeatureFlagSet p_249090_) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
dataPacks
The field for thedataPacks
record component. -
enabledFeatures
The field for theenabledFeatures
record component. -
ENABLED_FEATURES_ID
- See Also:
-
CODEC
-
DEFAULT
-
-
Constructor Details
-
WorldDataConfiguration
Creates an instance of aWorldDataConfiguration
record class.- Parameters:
dataPacks
- the value for thedataPacks
record componentenabledFeatures
- the value for theenabledFeatures
record component
-
-
Method Details
-
expandFeatures
-
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)
. -
dataPacks
Returns the value of thedataPacks
record component.- Returns:
- the value of the
dataPacks
record component
-
enabledFeatures
Returns the value of theenabledFeatures
record component.- Returns:
- the value of the
enabledFeatures
record component
-