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 CommandManager constructor) provides an instance with proper configurations.
Mappings:
Namespace Name
official di
intermediary net/minecraft/class_7157
named net/minecraft/command/CommandRegistryAccess
  • Method Details

    • createWrapper

      <T> RegistryWrapper<T> createWrapper(RegistryKey<? extends Registry<T>> registryRef)
      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 a Ldi;a(Lace;)Lhb;
      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;
    • of

      static CommandRegistryAccess of(RegistryWrapper.WrapperLookup wrapperLookup, FeatureSet enabledFeatures)
      Mappings:
      Namespace Name Mixin selector
      official a Ldi;a(Lhb$b;Lbyx;)Ldi;
      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;
    • of

      Mappings:
      Namespace Name Mixin selector
      official a Ldi;a(Lhn;Lbyx;)Ldi$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;