Interface CommandRegistryWrapper<T>

All Superinterfaces:
class_7871<T>
All Known Subinterfaces:
CommandRegistryWrapper.Impl<T>
All Known Implementing Classes:
CommandRegistryWrapper.class_7873, CommandRegistryWrapper.Impl.class_7875

public interface CommandRegistryWrapper<T> extends class_7871<T>
A wrapper of a registry, used in command arguments.

The methods in this class in most cases perform the same as ones defined in Registry. However, subclasses may have slightly different behaviors to make it easier to handle user-passed arguments. For example,

invalid @link
#getEntryList(TagKey)
may return an empty RegistryEntryList instead of Optional.empty().

A wrapper without any special behaviors can be created by calling

invalid @link
of(Registry)
.
Mappings:
Namespace Name
official gz
intermediary net/minecraft/class_7225
named net/minecraft/command/CommandRegistryWrapper
  • Method Details

    • streamKeys

      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 Lgz;b()Ljava/util/stream/Stream;
      intermediary method_42017 Lnet/minecraft/class_7225;method_42017()Ljava/util/stream/Stream;
      named streamKeys Lnet/minecraft/command/CommandRegistryWrapper;streamKeys()Ljava/util/stream/Stream;
    • method_46754

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

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lgz;d()Ljava/util/stream/Stream;
      intermediary method_42020 Lnet/minecraft/class_7225;method_42020()Ljava/util/stream/Stream;
      named streamTags Lnet/minecraft/command/CommandRegistryWrapper;streamTags()Ljava/util/stream/Stream;
    • method_46755

      default Stream<TagKey<T>> method_46755()
      Mappings:
      Namespace Name Mixin selector
      official e Lgz;e()Ljava/util/stream/Stream;
      intermediary method_46755 Lnet/minecraft/class_7225;method_46755()Ljava/util/stream/Stream;
      named method_46755 Lnet/minecraft/command/CommandRegistryWrapper;method_46755()Ljava/util/stream/Stream;
    • method_46753

      default CommandRegistryWrapper<T> method_46753(Predicate<T> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lgz;a(Ljava/util/function/Predicate;)Lgz;
      intermediary method_46753 Lnet/minecraft/class_7225;method_46753(Ljava/util/function/Predicate;)Lnet/minecraft/class_7225;
      named method_46753 Lnet/minecraft/command/CommandRegistryWrapper;method_46753(Ljava/util/function/Predicate;)Lnet/minecraft/command/CommandRegistryWrapper;