Record Class DimensionOptionsRegistryHolder

java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionOptionsRegistryHolder
Record Components:
dimensions -

public record DimensionOptionsRegistryHolder(Registry<DimensionOptions> dimensions) extends Record
Mappings:
Namespace Name
official dew
intermediary net/minecraft/class_7723
named net/minecraft/world/dimension/DimensionOptionsRegistryHolder
official b
intermediary comp_1014
named dimensions
  • Field Details

    • dimensions

      private final Registry<DimensionOptions> dimensions
      The field for the dimensions record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<DimensionOptionsRegistryHolder> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a:Lcom/mojang/serialization/MapCodec;
      intermediary field_40363 Lnet/minecraft/class_7723;field_40363:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;CODEC:Lcom/mojang/serialization/MapCodec;
    • VANILLA_KEYS

      private static final Set<RegistryKey<DimensionOptions>> VANILLA_KEYS
      Mappings:
      Namespace Name Mixin selector
      official c Ldew;c:Ljava/util/Set;
      intermediary field_40364 Lnet/minecraft/class_7723;field_40364:Ljava/util/Set;
      named VANILLA_KEYS Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;VANILLA_KEYS:Ljava/util/Set;
    • VANILLA_KEY_COUNT

      private static final int VANILLA_KEY_COUNT
      Mappings:
      Namespace Name Mixin selector
      official d Ldew;d:I
      intermediary field_40365 Lnet/minecraft/class_7723;field_40365:I
      named VANILLA_KEY_COUNT Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;VANILLA_KEY_COUNT:I
  • Constructor Details

  • Method Details

    • streamAll

      public static Stream<RegistryKey<DimensionOptions>> streamAll(Stream<RegistryKey<DimensionOptions>> otherKeys)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
      intermediary method_45525 Lnet/minecraft/class_7723;method_45525(Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
      named streamAll Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;streamAll(Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
    • with

      public DimensionOptionsRegistryHolder with(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lhn;Ldaq;)Ldew;
      intermediary method_45522 Lnet/minecraft/class_7723;method_45522(Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;)Lnet/minecraft/class_7723;
      named with Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;with(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;
    • createRegistry

      public static Registry<DimensionOptions> createRegistry(Registry<DimensionType> dynamicRegistry, Registry<DimensionOptions> currentRegistry, ChunkGenerator chunkGenerator)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lhm;Lhm;Ldaq;)Lhm;
      intermediary method_45520 Lnet/minecraft/class_7723;method_45520(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2378;
      named createRegistry Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;createRegistry(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/Registry;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/registry/Registry;
    • createRegistry

      public static Registry<DimensionOptions> createRegistry(Registry<DimensionOptions> currentRegistry, RegistryEntry<DimensionType> overworldEntry, ChunkGenerator chunkGenerator)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lhm;Lgz;Ldaq;)Lhm;
      intermediary method_45519 Lnet/minecraft/class_7723;method_45519(Lnet/minecraft/class_2378;Lnet/minecraft/class_6880;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2378;
      named createRegistry Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;createRegistry(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/registry/Registry;
    • getChunkGenerator

      public ChunkGenerator getChunkGenerator()
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a()Ldaq;
      intermediary method_45513 Lnet/minecraft/class_7723;method_45513()Lnet/minecraft/class_2794;
      named getChunkGenerator Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
    • getOrEmpty

      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lace;)Ljava/util/Optional;
      intermediary method_45514 Lnet/minecraft/class_7723;method_45514(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getOrEmpty Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;getOrEmpty(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
    • getWorldKeys

      public ImmutableSet<RegistryKey<World>> getWorldKeys()
      Mappings:
      Namespace Name Mixin selector
      official b Ldew;b()Lcom/google/common/collect/ImmutableSet;
      intermediary method_45526 Lnet/minecraft/class_7723;method_45526()Lcom/google/common/collect/ImmutableSet;
      named getWorldKeys Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;getWorldKeys()Lcom/google/common/collect/ImmutableSet;
    • isDebug

      public boolean isDebug()
      Mappings:
      Namespace Name Mixin selector
      official c Ldew;c()Z
      intermediary method_45531 Lnet/minecraft/class_7723;method_45531()Z
      named isDebug Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;isDebug()Z
    • getSpecialProperty

      private static LevelProperties.SpecialProperty getSpecialProperty(Registry<DimensionOptions> dimensionOptionsRegistry)
      Mappings:
      Namespace Name Mixin selector
      official b Ldew;b(Lhm;)Ldvi$a;
      intermediary method_45530 Lnet/minecraft/class_7723;method_45530(Lnet/minecraft/class_2378;)Lnet/minecraft/class_31$class_7729;
      named getSpecialProperty Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;getSpecialProperty(Lnet/minecraft/registry/Registry;)Lnet/minecraft/world/level/LevelProperties$SpecialProperty;
    • getLifecycle

      static com.mojang.serialization.Lifecycle getLifecycle(RegistryKey<DimensionOptions> key, DimensionOptions dimensionOptions)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lace;Ldcc;)Lcom/mojang/serialization/Lifecycle;
      intermediary method_45515 Lnet/minecraft/class_7723;method_45515(Lnet/minecraft/class_5321;Lnet/minecraft/class_5363;)Lcom/mojang/serialization/Lifecycle;
      named getLifecycle Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;getLifecycle(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/world/dimension/DimensionOptions;)Lcom/mojang/serialization/Lifecycle;
    • isVanilla

      private static boolean isVanilla(RegistryKey<DimensionOptions> key, DimensionOptions dimensionOptions)
      Mappings:
      Namespace Name Mixin selector
      official b Ldew;b(Lace;Ldcc;)Z
      intermediary method_45528 Lnet/minecraft/class_7723;method_45528(Lnet/minecraft/class_5321;Lnet/minecraft/class_5363;)Z
      named isVanilla Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;isVanilla(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/world/dimension/DimensionOptions;)Z
    • isOverworldVanilla

      private static boolean isOverworldVanilla(DimensionOptions dimensionOptions)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Ldcc;)Z
      intermediary method_45517 Lnet/minecraft/class_7723;method_45517(Lnet/minecraft/class_5363;)Z
      named isOverworldVanilla Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;isOverworldVanilla(Lnet/minecraft/world/dimension/DimensionOptions;)Z
    • isNetherVanilla

      private static boolean isNetherVanilla(DimensionOptions dimensionOptions)
      Mappings:
      Namespace Name Mixin selector
      official b Ldew;b(Ldcc;)Z
      intermediary method_45529 Lnet/minecraft/class_7723;method_45529(Lnet/minecraft/class_5363;)Z
      named isNetherVanilla Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;isNetherVanilla(Lnet/minecraft/world/dimension/DimensionOptions;)Z
    • isTheEndVanilla

      private static boolean isTheEndVanilla(DimensionOptions dimensionOptions)
      Mappings:
      Namespace Name Mixin selector
      official c Ldew;c(Ldcc;)Z
      intermediary method_45533 Lnet/minecraft/class_7723;method_45533(Lnet/minecraft/class_5363;)Z
      named isTheEndVanilla Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;isTheEndVanilla(Lnet/minecraft/world/dimension/DimensionOptions;)Z
    • toConfig

      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lhm;)Ldew$b;
      intermediary method_45518 Lnet/minecraft/class_7723;method_45518(Lnet/minecraft/class_2378;)Lnet/minecraft/class_7723$class_7725;
      named toConfig Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder;toConfig(Lnet/minecraft/registry/Registry;)Lnet/minecraft/world/dimension/DimensionOptionsRegistryHolder$DimensionsConfig;
    • 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.
    • dimensions

      public Registry<DimensionOptions> dimensions()
      Returns the value of the dimensions record component.
      Returns:
      the value of the dimensions record component