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
named net/minecraft/resource/DataConfiguration
intermediary net/minecraft/class_7712
official dcu
named dataPacks
intermediary comp_1010
official d
named enabledFeatures
intermediary comp_1011
official e
  • Field Details

    • dataPacks

      private final DataPackSettings dataPacks
      The field for the dataPacks record component.
    • enabledFeatures

      private final FeatureSet enabledFeatures
      The field for the enabledFeatures record component.
    • ENABLED_FEATURES_KEY

      public static final String ENABLED_FEATURES_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENABLED_FEATURES_KEY Lnet/minecraft/resource/DataConfiguration;ENABLED_FEATURES_KEY:Ljava/lang/String;
      intermediary field_40258 Lnet/minecraft/class_7712;field_40258:Ljava/lang/String;
      official a Ldcu;a:Ljava/lang/String;
    • CODEC

      public static final com.mojang.serialization.Codec<DataConfiguration> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/resource/DataConfiguration;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_40259 Lnet/minecraft/class_7712;field_40259:Lcom/mojang/serialization/Codec;
      official b Ldcu;b:Lcom/mojang/serialization/Codec;
    • SAFE_MODE

      public static final DataConfiguration SAFE_MODE
      Mappings:
      Namespace Name Mixin selector
      named SAFE_MODE Lnet/minecraft/resource/DataConfiguration;SAFE_MODE:Lnet/minecraft/resource/DataConfiguration;
      intermediary field_40260 Lnet/minecraft/class_7712;field_40260:Lnet/minecraft/class_7712;
      official c Ldcu;c:Ldcu;
  • Constructor Details

  • Method Details

    • withFeaturesAdded

      public DataConfiguration withFeaturesAdded(FeatureSet features)
      Mappings:
      Namespace Name Mixin selector
      named withFeaturesAdded Lnet/minecraft/resource/DataConfiguration;withFeaturesAdded(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/resource/DataConfiguration;
      intermediary method_45449 Lnet/minecraft/class_7712;method_45449(Lnet/minecraft/class_7699;)Lnet/minecraft/class_7712;
      official a Ldcu;a(Lcpn;)Ldcu;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • dataPacks

      public DataPackSettings dataPacks()
      Returns the value of the dataPacks record component.
      Returns:
      the value of the dataPacks record component
    • enabledFeatures

      public FeatureSet enabledFeatures()
      Returns the value of the enabledFeatures record component.
      Returns:
      the value of the enabledFeatures record component