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 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> CommandRegistryWrapper<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(Laby;)Lgz;
      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/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 a Ldi;a(Lgz$b;Lbyf;)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 method_46722 Lnet/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 a Ldi;a(Lhl;Lbyf;)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 method_46723 Lnet/minecraft/command/CommandRegistryAccess;method_46723(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/command/CommandRegistryAccess$class_7870;