Interface RegistryEntryLookup.RegistryLookup

All Known Subinterfaces:
CommandRegistryAccess, DynamicRegistryManager, DynamicRegistryManager.Immutable, RegistryWrapper.WrapperLookup
All Known Implementing Classes:
ContextSwappableRegistryLookup, DynamicRegistryManager.ImmutableImpl
Enclosing interface:
RegistryEntryLookup<T>

public static interface RegistryEntryLookup.RegistryLookup
Mappings:
Namespace Name
named net/minecraft/registry/RegistryEntryLookup$RegistryLookup
intermediary net/minecraft/class_7871$class_7872
official jm$a
  • Method Details

    • getOptional

      <T> Optional<? extends RegistryEntryLookup<T>> getOptional(RegistryKey<? extends Registry<? extends T>> registryRef)
      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 Ljm$a;a(Lamd;)Ljava/util/Optional;
    • getOrThrow

      default <T> RegistryEntryLookup<T> getOrThrow(RegistryKey<? extends Registry<? extends T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named getOrThrow Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getOrThrow(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryEntryLookup;
      intermediary method_46751 Lnet/minecraft/class_7871$class_7872;method_46751(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7871;
      official b Ljm$a;b(Lamd;)Ljm;
    • getOptionalEntry

      default <T> Optional<RegistryEntry.Reference<T>> getOptionalEntry(RegistryKey<T> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named getOptionalEntry Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getOptionalEntry(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_58561 Lnet/minecraft/class_7871$class_7872;method_58561(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official c Ljm$a;c(Lamd;)Ljava/util/Optional;
    • getEntryOrThrow

      default <T> RegistryEntry.Reference<T> getEntryOrThrow(RegistryKey<T> key)
      Mappings:
      Namespace Name Mixin selector
      named getEntryOrThrow Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getEntryOrThrow(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_66874 Lnet/minecraft/class_7871$class_7872;method_66874(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;
      official d Ljm$a;d(Lamd;)Ljl$c;