Record Class WorldGenSettings

java.lang.Object
java.lang.Record
net.minecraft.world.level.WorldGenSettings
Record Components:
generatorOptions -
dimensionOptionsRegistryHolder -

public record WorldGenSettings(GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder) extends Record
Mappings:
Namespace Name
official dhy
intermediary net/minecraft/class_7726
named net/minecraft/world/level/WorldGenSettings
official b
intermediary comp_1019
named generatorOptions
official c
intermediary comp_1020
named dimensionOptionsRegistryHolder
  • Field Details

    • generatorOptions

      private final GeneratorOptions generatorOptions
      The field for the generatorOptions record component.
    • dimensionOptionsRegistryHolder

      private final DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder
      The field for the dimensionOptionsRegistryHolder record component.
    • CODEC

      public static final com.mojang.serialization.Codec<WorldGenSettings> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldhy;a:Lcom/mojang/serialization/Codec;
      intermediary field_40366 Lnet/minecraft/class_7726;field_40366:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/level/WorldGenSettings;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • encode

      public static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhy;a(Lcom/mojang/serialization/DynamicOps;Ldia;Ldhx;)Lcom/mojang/serialization/DataResult;
      intermediary method_45538 Lnet/minecraft/class_7726;method_45538(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5285;Lnet/minecraft/class_7723;)Lcom/mojang/serialization/DataResult;
      named encode Lnet/minecraft/world/level/WorldGenSettings;encode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;)Lcom/mojang/serialization/DataResult;
    • encode

      public static <T> com.mojang.serialization.DataResult<T> encode(com.mojang.serialization.DynamicOps<T> registryOps, GeneratorOptions generatorOptions, DynamicRegistryManager dynamicRegistryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhy;a(Lcom/mojang/serialization/DynamicOps;Ldia;Lhs;)Lcom/mojang/serialization/DataResult;
      intermediary method_45539 Lnet/minecraft/class_7726;method_45539(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5285;Lnet/minecraft/class_5455;)Lcom/mojang/serialization/DataResult;
      named encode Lnet/minecraft/world/level/WorldGenSettings;encode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/registry/DynamicRegistryManager;)Lcom/mojang/serialization/DataResult;
    • 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.
    • generatorOptions

      public GeneratorOptions generatorOptions()
      Returns the value of the generatorOptions record component.
      Returns:
      the value of the generatorOptions record component
    • dimensionOptionsRegistryHolder

      public DimensionOptionsRegistryHolder dimensionOptionsRegistryHolder()
      Returns the value of the dimensionOptionsRegistryHolder record component.
      Returns:
      the value of the dimensionOptionsRegistryHolder record component