Class RegistryWrapper.Delegating<T>

java.lang.Object
net.minecraft.registry.RegistryWrapper.Delegating<T>
All Implemented Interfaces:
RegistryEntryLookup<T>, RegistryWrapper<T>
Enclosing interface:
RegistryWrapper<T>

public static class RegistryWrapper.Delegating<T> extends Object implements RegistryWrapper<T>
Mappings:
Namespace Name
official hg$a
intermediary net/minecraft/class_7225$class_7873
named net/minecraft/registry/RegistryWrapper$Delegating
  • Field Details

    • baseWrapper

      protected final RegistryWrapper<T> baseWrapper
      Mappings:
      Namespace Name Mixin selector
      official c Lhg$a;c:Lhg;
      intermediary field_40933 Lnet/minecraft/class_7225$class_7873;field_40933:Lnet/minecraft/class_7225;
      named baseWrapper Lnet/minecraft/registry/RegistryWrapper$Delegating;baseWrapper:Lnet/minecraft/registry/RegistryWrapper;
  • Constructor Details

    • Delegating

      public Delegating(RegistryWrapper<T> baseWrapper)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhg$a;<init>(Lhg;)V
      intermediary <init> Lnet/minecraft/class_7225$class_7873;<init>(Lnet/minecraft/class_7225;)V
      named <init> Lnet/minecraft/registry/RegistryWrapper$Delegating;<init>(Lnet/minecraft/registry/RegistryWrapper;)V
  • Method Details

    • getOptional

      public Optional<RegistryEntry.Reference<T>> getOptional(RegistryKey<T> key)
      Specified by:
      getOptional in interface RegistryEntryLookup<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lhf;a(Laev;)Ljava/util/Optional;
      intermediary method_46746 Lnet/minecraft/class_7871;method_46746(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getOptional Lnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
    • streamEntries

      public Stream<RegistryEntry.Reference<T>> streamEntries()
      Returns a stream of registry keys defined in the wrapped registry.
      Specified by:
      streamEntries in interface RegistryWrapper<T>
      Returns:
      a stream of registry keys defined in the wrapped registry
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lhg;b()Ljava/util/stream/Stream;
      intermediary method_42017 Lnet/minecraft/class_7225;method_42017()Ljava/util/stream/Stream;
      named streamEntries Lnet/minecraft/registry/RegistryWrapper;streamEntries()Ljava/util/stream/Stream;
    • getOptional

      public Optional<RegistryEntryList.Named<T>> getOptional(TagKey<T> tag)
      Specified by:
      getOptional in interface RegistryEntryLookup<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lhf;a(Laqh;)Ljava/util/Optional;
      intermediary method_46733 Lnet/minecraft/class_7871;method_46733(Lnet/minecraft/class_6862;)Ljava/util/Optional;
      named getOptional Lnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;
    • streamTags

      public Stream<RegistryEntryList.Named<T>> streamTags()
      Specified by:
      streamTags in interface RegistryWrapper<T>
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lhg;d()Ljava/util/stream/Stream;
      intermediary method_42020 Lnet/minecraft/class_7225;method_42020()Ljava/util/stream/Stream;
      named streamTags Lnet/minecraft/registry/RegistryWrapper;streamTags()Ljava/util/stream/Stream;