Package net.minecraft.command
Interface CommandRegistryAccess
- All Known Subinterfaces:
- CommandRegistryAccess.EntryListCreationPolicySettable
public interface CommandRegistryAccess
A class that creates 
RegistryWrapper with ability to set a policy on
 how to handle unrecognized tags.- API Note:
- You usually do not need to create your own instance; the command registration
 callbacks (such as CommandManagerconstructor) provides an instance with proper configurations.
- Mappings:
- Namespace - Name - official - dm- intermediary - net/minecraft/class_7157- named - net/minecraft/command/CommandRegistryAccess
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumA policy on how to handle aTagKeythat does not resolve to an existing tag (unrecognized tag) inRegistryEntryLookup.getOptional(net.minecraft.registry.tag.TagKey).static interface
- 
Method SummaryModifier and TypeMethodDescription<T> RegistryWrapper<T>createWrapper(RegistryKey<? extends Registry<T>> registryRef) Creates a registry wrapper that follows the entry list creation policy.of(DynamicRegistryManager registryManager, FeatureSet enabledFeatures) static CommandRegistryAccessof(RegistryWrapper.WrapperLookup wrapperLookup, FeatureSet enabledFeatures) 
- 
Method Details- 
createWrapperCreates a registry wrapper that follows the entry list creation policy.- Parameters:
- registryRef- the registry key of the registry to wrap
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldm;a(Lacp;)Lhg;- intermediary - method_41699- Lnet/minecraft/class_7157;method_41699(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7225;- named - createWrapper- Lnet/minecraft/command/CommandRegistryAccess;createWrapper(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryWrapper;
 
- 
ofstatic CommandRegistryAccess of(RegistryWrapper.WrapperLookup wrapperLookup, FeatureSet enabledFeatures) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldm;a(Lhg$b;Lcaw;)Ldm;- intermediary - method_46722- Lnet/minecraft/class_7157;method_46722(Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_7699;)Lnet/minecraft/class_7157;- named - of- Lnet/minecraft/command/CommandRegistryAccess;of(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/command/CommandRegistryAccess;
 
- 
ofstatic CommandRegistryAccess.EntryListCreationPolicySettable of(DynamicRegistryManager registryManager, FeatureSet enabledFeatures) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldm;a(Lhs;Lcaw;)Ldm$a;- intermediary - method_46723- Lnet/minecraft/class_7157;method_46723(Lnet/minecraft/class_5455;Lnet/minecraft/class_7699;)Lnet/minecraft/class_7157$class_7870;- named - of- Lnet/minecraft/command/CommandRegistryAccess;of(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/command/CommandRegistryAccess$EntryListCreationPolicySettable;
 
 
-