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 jn
  • 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 Ljn;a(Lakp;)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 Ljn;b(Lakp;)Ljm$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 Ljn;a(Lawt;)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 Ljn;b(Lawt;)Ljq$c;