Package net.minecraft.resource
Record Class DataConfiguration
java.lang.Object
java.lang.Record
net.minecraft.resource.DataConfiguration
- Record Components:
dataPacks-enabledFeatures-
public record DataConfiguration(DataPackSettings dataPacks, FeatureSet enabledFeatures)
extends Record
- Mappings:
Namespace Name official cndintermediary net/minecraft/class_7712named net/minecraft/resource/DataConfigurationofficial dintermediary comp_1010named dataPacksofficial eintermediary comp_1011named enabledFeatures
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataConfiguration>private final DataPackSettingsThe field for thedataPacksrecord component.static final Stringprivate final FeatureSetThe field for theenabledFeaturesrecord component.static final DataConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataPacksrecord component.Returns the value of theenabledFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.withFeaturesAdded(FeatureSet features)
-
Field Details
-
dataPacks
The field for thedataPacksrecord component. -
enabledFeatures
The field for theenabledFeaturesrecord component. -
ENABLED_FEATURES_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official aLcnd;a:Ljava/lang/String;intermediary field_40258Lnet/minecraft/class_7712;field_40258:Ljava/lang/String;named ENABLED_FEATURES_KEYLnet/minecraft/resource/DataConfiguration;ENABLED_FEATURES_KEY:Ljava/lang/String;
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLcnd;b:Lcom/mojang/serialization/Codec;intermediary field_40259Lnet/minecraft/class_7712;field_40259:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/resource/DataConfiguration;CODEC:Lcom/mojang/serialization/Codec;
-
SAFE_MODE
- Mappings:
Namespace Name Mixin selector official cLcnd;c:Lcnd;intermediary field_40260Lnet/minecraft/class_7712;field_40260:Lnet/minecraft/class_7712;named SAFE_MODELnet/minecraft/resource/DataConfiguration;SAFE_MODE:Lnet/minecraft/resource/DataConfiguration;
-
-
Constructor Details
-
DataConfiguration
-
-
Method Details
-
withFeaturesAdded
- Mappings:
Namespace Name Mixin selector official aLcnd;a(Lcau;)Lcnd;intermediary method_45449Lnet/minecraft/class_7712;method_45449(Lnet/minecraft/class_7699;)Lnet/minecraft/class_7712;named withFeaturesAddedLnet/minecraft/resource/DataConfiguration;withFeaturesAdded(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/resource/DataConfiguration;
-
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 thedataPacksrecord component.- Returns:
- the value of the
dataPacksrecord component
-
enabledFeatures
Returns the value of theenabledFeaturesrecord component.- Returns:
- the value of the
enabledFeaturesrecord component
-