Record Class DimensionOptions

java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionOptions
Record Components:
dimensionTypeEntry -
chunkGenerator -
effects -
mine -
spawn -
generatorCache -

public record DimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, Optional<ChunkGenerator> chunkGenerator, List<class_11109> effects, Optional<class_11105> mine, class_11102 spawn, MutableObject<ChunkGenerator> generatorCache) extends Record
Mappings:
Namespace Name
named net/minecraft/world/dimension/DimensionOptions
intermediary net/minecraft/class_5363
official eis
named dimensionTypeEntry
intermediary comp_1012
official c
named chunkGenerator
intermediary comp_1013
official d
named effects
intermediary comp_3961
official e
named mine
intermediary comp_3962
official f
named spawn
intermediary comp_3963
official g
named generatorCache
intermediary comp_3964
official h
  • Field Details

    • dimensionTypeEntry

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

      private final Optional<ChunkGenerator> chunkGenerator
      The field for the chunkGenerator record component.
    • effects

      private final List<class_11109> effects
      The field for the effects record component.
    • mine

      private final Optional<class_11105> mine
      The field for the mine record component.
    • spawn

      private final class_11102 spawn
      The field for the spawn record component.
    • generatorCache

      private final MutableObject<ChunkGenerator> generatorCache
      The field for the generatorCache record component.
    • CODEC

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

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

    • DimensionOptions

      public DimensionOptions(RegistryEntry<DimensionType> registryEntry, Optional<ChunkGenerator> optional, List<class_11109> list, Optional<class_11105> optional2, class_11102 class_11102)
    • DimensionOptions

      public DimensionOptions(RegistryEntry<DimensionType> dimensionTypeEntry, Optional<ChunkGenerator> optional, List<class_11109> list, Optional<class_11105> optional2, class_11102 class_11102, MutableObject<ChunkGenerator> mutableObject)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/dimension/DimensionOptions;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/Optional;Ljava/util/List;Ljava/util/Optional;Lnet/minecraft/class_11102;Lorg/apache/commons/lang3/mutable/MutableObject;)V
      intermediary <init> Lnet/minecraft/class_5363;<init>(Lnet/minecraft/class_6880;Ljava/util/Optional;Ljava/util/List;Ljava/util/Optional;Lnet/minecraft/class_11102;Lorg/apache/commons/lang3/mutable/MutableObject;)V
      official <init> Leis;<init>(Ljh;Ljava/util/Optional;Ljava/util/List;Ljava/util/Optional;Lfbu;Lorg/apache/commons/lang3/mutable/MutableObject;)V
  • Method Details

    • method_69793

      public static ChunkGenerator method_69793(RegistryWrapper.WrapperLookup wrapperLookup, RegistryEntry.Reference<DimensionOptions> reference)
      Mappings:
      Namespace Name Mixin selector
      named method_69793 Lnet/minecraft/world/dimension/DimensionOptions;method_69793(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/registry/entry/RegistryEntry$Reference;)Lnet/minecraft/world/gen/chunk/ChunkGenerator;
      intermediary method_69793 Lnet/minecraft/class_5363;method_69793(Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_6880$class_6883;)Lnet/minecraft/class_2794;
      official a Leis;a(Ljj$a;Ljh$c;)Legq;
    • 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 Optional<ChunkGenerator> chunkGenerator()
      Returns the value of the chunkGenerator record component.
      Returns:
      the value of the chunkGenerator record component
    • effects

      public List<class_11109> effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects record component
    • mine

      public Optional<class_11105> mine()
      Returns the value of the mine record component.
      Returns:
      the value of the mine record component
    • spawn

      public class_11102 spawn()
      Returns the value of the spawn record component.
      Returns:
      the value of the spawn record component
    • generatorCache

      public MutableObject<ChunkGenerator> generatorCache()
      Returns the value of the generatorCache record component.
      Returns:
      the value of the generatorCache record component