Package net.minecraft.command
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
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,
may return an empty invalid @link
#getEntryList(TagKey)RegistryEntryList instead of Optional.empty().
A wrapper without any special behaviors can be created by calling
.invalid @link
of(Registry)
- Mappings:
Namespace Name official gzintermediary net/minecraft/class_7225named net/minecraft/command/CommandRegistryWrapper
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interfacestatic interfaceNested classes/interfaces inherited from interface net.minecraft.class_7871
class_7871.class_7872 -
Method Summary
Modifier and TypeMethodDescriptiondefault CommandRegistryWrapper<T>method_46753(Predicate<T> predicate) default Stream<RegistryKey<T>>Returns a stream of registry keys defined in the wrapped registry.Methods inherited from interface net.minecraft.class_7871
method_46733, method_46735, method_46746, method_46747
-
Method Details
-
streamKeys
Stream<RegistryEntry.Reference<T>> 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 bLgz;b()Ljava/util/stream/Stream;intermediary method_42017Lnet/minecraft/class_7225;method_42017()Ljava/util/stream/Stream;named streamKeysLnet/minecraft/command/CommandRegistryWrapper;streamKeys()Ljava/util/stream/Stream;
-
method_46754
- Mappings:
Namespace Name Mixin selector official cLgz;c()Ljava/util/stream/Stream;intermediary method_46754Lnet/minecraft/class_7225;method_46754()Ljava/util/stream/Stream;named method_46754Lnet/minecraft/command/CommandRegistryWrapper;method_46754()Ljava/util/stream/Stream;
-
streamTags
Stream<RegistryEntryList.Named<T>> streamTags()- See Also:
- Mappings:
Namespace Name Mixin selector official dLgz;d()Ljava/util/stream/Stream;intermediary method_42020Lnet/minecraft/class_7225;method_42020()Ljava/util/stream/Stream;named streamTagsLnet/minecraft/command/CommandRegistryWrapper;streamTags()Ljava/util/stream/Stream;
-
method_46755
- Mappings:
Namespace Name Mixin selector official eLgz;e()Ljava/util/stream/Stream;intermediary method_46755Lnet/minecraft/class_7225;method_46755()Ljava/util/stream/Stream;named method_46755Lnet/minecraft/command/CommandRegistryWrapper;method_46755()Ljava/util/stream/Stream;
-
method_46753
- Mappings:
Namespace Name Mixin selector official aLgz;a(Ljava/util/function/Predicate;)Lgz;intermediary method_46753Lnet/minecraft/class_7225;method_46753(Ljava/util/function/Predicate;)Lnet/minecraft/class_7225;named method_46753Lnet/minecraft/command/CommandRegistryWrapper;method_46753(Ljava/util/function/Predicate;)Lnet/minecraft/command/CommandRegistryWrapper;
-