Interface DynamicRegistryManager

All Superinterfaces:
RegistryEntryLookup.RegistryLookup, RegistryWrapper.WrapperLookup
All Known Subinterfaces:
DynamicRegistryManager.Immutable
All Known Implementing Classes:
DynamicRegistryManager.ImmutableImpl

public interface DynamicRegistryManager extends RegistryWrapper.WrapperLookup
A manager of dynamic registries. It allows users to access non-hardcoded registries reliably.

The DynamicRegistryManager.ImmutableImpl class serves as an immutable implementation of any particular collection or configuration of dynamic registries.

Mappings:
Namespace Name
named net/minecraft/registry/DynamicRegistryManager
intermediary net/minecraft/class_5455
official ke
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/registry/DynamicRegistryManager;LOGGER:Lorg/slf4j/Logger;
      intermediary field_25918 Lnet/minecraft/class_5455;field_25918:Lorg/slf4j/Logger;
      official a Lke;a:Lorg/slf4j/Logger;
    • EMPTY

      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/registry/DynamicRegistryManager;EMPTY:Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary field_40585 Lnet/minecraft/class_5455;field_40585:Lnet/minecraft/class_5455$class_6890;
      official b Lke;b:Lke$b;
  • Method Details

    • getOptional

      <E> Optional<Registry<E>> getOptional(RegistryKey<? extends Registry<? extends E>> registryRef)
      Specified by:
      getOptional in interface RegistryEntryLookup.RegistryLookup
      Specified by:
      getOptional in interface RegistryWrapper.WrapperLookup
      Mappings:
      Namespace Name Mixin selector
      named getOptional Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_46759 Lnet/minecraft/class_7871$class_7872;method_46759(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official a Ljr$a;a(Laly;)Ljava/util/Optional;
    • getOrThrow

      default <E> Registry<E> getOrThrow(RegistryKey<? extends Registry<? extends E>> key)
      Specified by:
      getOrThrow in interface RegistryEntryLookup.RegistryLookup
      Specified by:
      getOrThrow in interface RegistryWrapper.WrapperLookup
      Mappings:
      Namespace Name Mixin selector
      named getOrThrow Lnet/minecraft/registry/DynamicRegistryManager;getOrThrow(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/Registry;
      intermediary method_30530 Lnet/minecraft/class_5455;method_30530(Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;
      official e Lke;e(Laly;)Lkd;
    • streamAllRegistries

      Stream<DynamicRegistryManager.Entry<?>> streamAllRegistries()
      Mappings:
      Namespace Name Mixin selector
      named streamAllRegistries Lnet/minecraft/registry/DynamicRegistryManager;streamAllRegistries()Ljava/util/stream/Stream;
      intermediary method_40311 Lnet/minecraft/class_5455;method_40311()Ljava/util/stream/Stream;
      official a Lke;a()Ljava/util/stream/Stream;
    • streamAllRegistryKeys

      default Stream<RegistryKey<? extends Registry<?>>> streamAllRegistryKeys()
      Specified by:
      streamAllRegistryKeys in interface RegistryWrapper.WrapperLookup
      Mappings:
      Namespace Name Mixin selector
      named streamAllRegistryKeys Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;streamAllRegistryKeys()Ljava/util/stream/Stream;
      intermediary method_55282 Lnet/minecraft/class_7225$class_7874;method_55282()Ljava/util/stream/Stream;
      official b Ljs$a;b()Ljava/util/stream/Stream;
    • of

      static DynamicRegistryManager.Immutable of(Registry<? extends Registry<?>> registries)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/registry/DynamicRegistryManager;of(Lnet/minecraft/registry/Registry;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_40302 Lnet/minecraft/class_5455;method_40302(Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6890;
      official a Lke;a(Lkd;)Lke$b;
    • toImmutable

      default DynamicRegistryManager.Immutable toImmutable()
      Mappings:
      Namespace Name Mixin selector
      named toImmutable Lnet/minecraft/registry/DynamicRegistryManager;toImmutable()Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_40316 Lnet/minecraft/class_5455;method_40316()Lnet/minecraft/class_5455$class_6890;
      official e Lke;e()Lke$b;