Record Class DimensionOptions

java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionOptions
Record Components:
dimensionTypeEntry -
chunkGenerator -

public record DimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, ChunkGenerator chunkGenerator) extends Record
Mappings:
Namespace Name
official dit
intermediary net/minecraft/class_5363
named net/minecraft/world/dimension/DimensionOptions
official e
intermediary comp_1012
named dimensionTypeEntry
official f
intermediary comp_1013
named chunkGenerator
  • Field Details

    • dimensionTypeEntry

      private final RegistryEntry<DimensionType> dimensionTypeEntry
      The field for the dimensionTypeEntry record component.
    • chunkGenerator

      private final ChunkGenerator chunkGenerator
      The field for the chunkGenerator record component.
    • CODEC

      public static final com.mojang.serialization.Codec<DimensionOptions> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a:Lcom/mojang/serialization/Codec;
      intermediary field_25411 Lnet/minecraft/class_5363;field_25411:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/dimension/DimensionOptions;CODEC:Lcom/mojang/serialization/Codec;
    • OVERWORLD

      public static final RegistryKey<DimensionOptions> OVERWORLD
      Mappings:
      Namespace Name Mixin selector
      official b Ldit;b:Laev;
      intermediary field_25412 Lnet/minecraft/class_5363;field_25412:Lnet/minecraft/class_5321;
      named OVERWORLD Lnet/minecraft/world/dimension/DimensionOptions;OVERWORLD:Lnet/minecraft/registry/RegistryKey;
    • NETHER

      public static final RegistryKey<DimensionOptions> NETHER
      Mappings:
      Namespace Name Mixin selector
      official c Ldit;c:Laev;
      intermediary field_25413 Lnet/minecraft/class_5363;field_25413:Lnet/minecraft/class_5321;
      named NETHER Lnet/minecraft/world/dimension/DimensionOptions;NETHER:Lnet/minecraft/registry/RegistryKey;
    • END

      public static final RegistryKey<DimensionOptions> END
      Mappings:
      Namespace Name Mixin selector
      official d Ldit;d:Laev;
      intermediary field_25414 Lnet/minecraft/class_5363;field_25414:Lnet/minecraft/class_5321;
      named END Lnet/minecraft/world/dimension/DimensionOptions;END:Lnet/minecraft/registry/RegistryKey;
  • Constructor Details

  • Method Details

    • 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.
    • dimensionTypeEntry

      public RegistryEntry<DimensionType> dimensionTypeEntry()
      Returns the value of the dimensionTypeEntry record component.
      Returns:
      the value of the dimensionTypeEntry record component
    • chunkGenerator

      public ChunkGenerator chunkGenerator()
      Returns the value of the chunkGenerator record component.
      Returns:
      the value of the chunkGenerator record component