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 SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldDataConfiguration>private final DataPackConfigThe field for thedataPacksrecord component.static final WorldDataConfigurationstatic final Stringprivate final FeatureFlagSetThe field for theenabledFeaturesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionWorldDataConfiguration(DataPackConfig dataPacks, FeatureFlagSet enabledFeatures) Creates an instance of aWorldDataConfigurationrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedataPacksrecord component.Returns the value of theenabledFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.expandFeatures(FeatureFlagSet p_249090_) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
dataPacksThe field for thedataPacksrecord component.
- 
enabledFeaturesThe field for theenabledFeaturesrecord component.
- 
ENABLED_FEATURES_ID- See Also:
 
- 
CODEC
- 
DEFAULT
 
- 
- 
Constructor Details- 
WorldDataConfigurationCreates an instance of aWorldDataConfigurationrecord class.- Parameters:
- dataPacks- the value for the- dataPacksrecord component
- enabledFeatures- the value for the- enabledFeaturesrecord component
 
 
- 
- 
Method Details- 
expandFeatures
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
dataPacksReturns the value of thedataPacksrecord component.- Returns:
- the value of the dataPacksrecord component
 
- 
enabledFeaturesReturns the value of theenabledFeaturesrecord component.- Returns:
- the value of the enabledFeaturesrecord component
 
 
-