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 hb$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) getEntryList(TagKey<T> tag) Returns the entry list for the provided tag.Returns a stream of registry keys defined in the wrapped registry.withFeatureFilter(FeatureSet enabledFeatures) withFilter(Predicate<T> filter)
-
Field Details
-
registry
- Mappings:
Namespace Name Mixin selector official bLhb$a;b:Lhl;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>Lhb$a;<init>(Lhl;)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 aLhb;a(Labu;)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 aLhb;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 aLhb;a(Lamg;)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 bLhb;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;
-
withFilter
- Mappings:
Namespace Name Mixin selector official aLhb$a;a(Ljava/util/function/Predicate;)Lhb;intermediary method_45921Lnet/minecraft/class_7225$class_7226;method_45921(Ljava/util/function/Predicate;)Lnet/minecraft/class_7225;named withFilterLnet/minecraft/command/CommandRegistryWrapper$Impl;withFilter(Ljava/util/function/Predicate;)Lnet/minecraft/command/CommandRegistryWrapper;
-
withFeatureFilter
- Mappings:
Namespace Name Mixin selector official aLhb$a;a(Lbya;)Lhb;intermediary method_45919Lnet/minecraft/class_7225$class_7226;method_45919(Lnet/minecraft/class_7699;)Lnet/minecraft/class_7225;named withFeatureFilterLnet/minecraft/command/CommandRegistryWrapper$Impl;withFeatureFilter(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/command/CommandRegistryWrapper;
-