Package net.minecraft.command
Interface CommandRegistryAccess
- All Known Subinterfaces:
CommandRegistryAccess.class_7870
public interface CommandRegistryAccess
A class that creates
CommandRegistryWrapper 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 diintermediary net/minecraft/class_7157named net/minecraft/command/CommandRegistryAccess
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enumA policy on how to handle aTagKeythat does not resolve to an existing tag (unrecognized tag) in.invalid @link
CommandRegistryWrapper#getEntryList -
Method Summary
Modifier and TypeMethodDescription<T> CommandRegistryWrapper<T>createWrapper(RegistryKey<? extends Registry<T>> registryRef) Creates a registry wrapper that follows the entry list creation policy.static CommandRegistryAccessmethod_46722(CommandRegistryWrapper.class_7874 class_7874, FeatureSet featureSet) method_46723(DynamicRegistryManager dynamicRegistryManager, FeatureSet featureSet)
-
Method Details
-
createWrapper
Creates 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 aLdi;a(Laby;)Lgz;intermediary method_41699Lnet/minecraft/class_7157;method_41699(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7225;named createWrapperLnet/minecraft/command/CommandRegistryAccess;createWrapper(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/command/CommandRegistryWrapper;
-
method_46722
static CommandRegistryAccess method_46722(CommandRegistryWrapper.class_7874 class_7874, FeatureSet featureSet) - Mappings:
Namespace Name Mixin selector official aLdi;a(Lgz$b;Lbyf;)Ldi;intermediary method_46722Lnet/minecraft/class_7157;method_46722(Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_7699;)Lnet/minecraft/class_7157;named method_46722Lnet/minecraft/command/CommandRegistryAccess;method_46722(Lnet/minecraft/command/CommandRegistryWrapper$class_7874;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/command/CommandRegistryAccess;
-
method_46723
static CommandRegistryAccess.class_7870 method_46723(DynamicRegistryManager dynamicRegistryManager, FeatureSet featureSet) - Mappings:
Namespace Name Mixin selector official aLdi;a(Lhl;Lbyf;)Ldi$a;intermediary method_46723Lnet/minecraft/class_7157;method_46723(Lnet/minecraft/class_5455;Lnet/minecraft/class_7699;)Lnet/minecraft/class_7157$class_7870;named method_46723Lnet/minecraft/command/CommandRegistryAccess;method_46723(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/command/CommandRegistryAccess$class_7870;
-