Interface RegistryWrapper<T>

All Superinterfaces:
RegistryEntryLookup<T>
All Known Subinterfaces:
RegistryWrapper.Impl<T>
All Known Implementing Classes:
RegistryWrapper.Delegating, RegistryWrapper.Impl.Delegating

public interface RegistryWrapper<T> extends RegistryEntryLookup<T>
A read-only wrapper of a registry.
Mappings:
Namespace Name
official hb
intermediary net/minecraft/class_7225
named net/minecraft/registry/RegistryWrapper
  • Method Details

    • streamEntries

      Stream<RegistryEntry.Reference<T>> streamEntries()
      Returns a stream of registry keys defined in the wrapped registry.
      Returns:
      a stream of registry keys defined in the wrapped registry
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lhb;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;
    • streamKeys

      default Stream<RegistryKey<T>> streamKeys()
      Mappings:
      Namespace Name Mixin selector
      official c Lhb;c()Ljava/util/stream/Stream;
      intermediary method_46754 Lnet/minecraft/class_7225;method_46754()Ljava/util/stream/Stream;
      named streamKeys Lnet/minecraft/registry/RegistryWrapper;streamKeys()Ljava/util/stream/Stream;
    • streamTags

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lhb;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;
    • streamTagKeys

      default Stream<TagKey<T>> streamTagKeys()
      Mappings:
      Namespace Name Mixin selector
      official e Lhb;e()Ljava/util/stream/Stream;
      intermediary method_46755 Lnet/minecraft/class_7225;method_46755()Ljava/util/stream/Stream;
      named streamTagKeys Lnet/minecraft/registry/RegistryWrapper;streamTagKeys()Ljava/util/stream/Stream;
    • filter

      default RegistryWrapper<T> filter(Predicate<T> filter)
      Mappings:
      Namespace Name Mixin selector
      official a Lhb;a(Ljava/util/function/Predicate;)Lhb;
      intermediary method_46753 Lnet/minecraft/class_7225;method_46753(Ljava/util/function/Predicate;)Lnet/minecraft/class_7225;
      named filter Lnet/minecraft/registry/RegistryWrapper;filter(Ljava/util/function/Predicate;)Lnet/minecraft/registry/RegistryWrapper;