Package net.minecraft.command
Class CommandRegistryWrapper.Impl<T>
java.lang.Object
net.minecraft.command.CommandRegistryWrapper.Impl<T>
- All Implemented Interfaces:
CommandRegistryWrapper<T>
- Enclosing interface:
CommandRegistryWrapper<T>
public static class CommandRegistryWrapper.Impl<T>
extends Object
implements CommandRegistryWrapper<T>
- Mappings:
Namespace Name official hd$aintermediary net/minecraft/class_7225$class_7226named net/minecraft/command/CommandRegistryWrapper$Impl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.CommandRegistryWrapper
CommandRegistryWrapper.Impl<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntry(RegistryKey<T> key) Optional<? extends RegistryEntryList<T>>getEntryList(TagKey<T> tag) Returns the entry list for the provided tag.Returns a stream of registry keys defined in the wrapped registry.
-
Field Details
-
registry
- Mappings:
Namespace Name Mixin selector official bLhd$a;b:Lhm;intermediary field_37996Lnet/minecraft/class_7225$class_7226;field_37996:Lnet/minecraft/class_2378;named registryLnet/minecraft/command/CommandRegistryWrapper$Impl;registry:Lnet/minecraft/util/registry/Registry;
-
-
Constructor Details
-
Impl
- Mappings:
Namespace Name Mixin selector official <init>Lhd$a;<init>(Lhm;)Vintermediary <init>Lnet/minecraft/class_7225$class_7226;<init>(Lnet/minecraft/class_2378;)Vnamed <init>Lnet/minecraft/command/CommandRegistryWrapper$Impl;<init>(Lnet/minecraft/util/registry/Registry;)V
-
-
Method Details
-
getEntry
- Specified by:
getEntryin interfaceCommandRegistryWrapper<T>- See Also:
- Mappings:
Namespace Name Mixin selector official aLhd;a(Laai;)Ljava/util/Optional;intermediary method_42019Lnet/minecraft/class_7225;method_42019(Lnet/minecraft/class_5321;)Ljava/util/Optional;named getEntryLnet/minecraft/command/CommandRegistryWrapper;getEntry(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
-
streamKeys
Returns a stream of registry keys defined in the wrapped registry.- Specified by:
streamKeysin interfaceCommandRegistryWrapper<T>- Returns:
- a stream of registry keys defined in the wrapped registry
- See Also:
- Mappings:
Namespace Name Mixin selector official aLhd;a()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;
-
getEntryList
Returns the entry list for the provided tag.Implementations have different behaviors for unrecognized tags. The default implementation returns
Optional.empty(); however, the ones created byCommandRegistryAccess.createWrapper(net.minecraft.util.registry.RegistryKey<? extends net.minecraft.util.registry.Registry<T>>)can create and return a new entry list, or return an empty entry list.- Specified by:
getEntryListin interfaceCommandRegistryWrapper<T>- Returns:
- the entry list for the provided tag
- See Also:
- Mappings:
Namespace Name Mixin selector official aLhd;a(Lakh;)Ljava/util/Optional;intermediary method_41700Lnet/minecraft/class_7225;method_41700(Lnet/minecraft/class_6862;)Ljava/util/Optional;named getEntryListLnet/minecraft/command/CommandRegistryWrapper;getEntryList(Lnet/minecraft/tag/TagKey;)Ljava/util/Optional;
-
streamTags
- Specified by:
streamTagsin interfaceCommandRegistryWrapper<T>- See Also:
- Mappings:
Namespace Name Mixin selector official bLhd;b()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;
-