Interface RegistryEntryLookup<T>

All Known Subinterfaces:
RegistryWrapper<T>, RegistryWrapper.Impl<T>, RegistryWrapper.Impl.Delegating<T>
All Known Implementing Classes:
RegistryBuilder.EntryListCreatingLookup, RegistryBuilder.StandAloneEntryCreatingLookup, RegistryBuilder.UntaggedDelegatingLookup, RegistryBuilder.UntaggedLookup

public interface RegistryEntryLookup<T>
Mappings:
Namespace Name
named net/minecraft/registry/RegistryEntryLookup
intermediary net/minecraft/class_7871
official jj
  • Method Details

    • getOptional

      Mappings:
      Namespace Name Mixin selector
      named getOptional Lnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_46746 Lnet/minecraft/class_7871;method_46746(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official a Ljj;a(Lale;)Ljava/util/Optional;
    • getOrThrow

      default RegistryEntry.Reference<T> getOrThrow(RegistryKey<T> key)
      Mappings:
      Namespace Name Mixin selector
      named getOrThrow Lnet/minecraft/registry/RegistryEntryLookup;getOrThrow(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_46747 Lnet/minecraft/class_7871;method_46747(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;
      official b Ljj;b(Lale;)Lji$c;
    • getOptional

      Optional<RegistryEntryList.Named<T>> getOptional(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      named getOptional Lnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;
      intermediary method_46733 Lnet/minecraft/class_7871;method_46733(Lnet/minecraft/class_6862;)Ljava/util/Optional;
      official a Ljj;a(Laxf;)Ljava/util/Optional;
    • getOrThrow

      default RegistryEntryList.Named<T> getOrThrow(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      named getOrThrow Lnet/minecraft/registry/RegistryEntryLookup;getOrThrow(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;
      intermediary method_46735 Lnet/minecraft/class_7871;method_46735(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;
      official b Ljj;b(Laxf;)Ljm$c;