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
CommandManager
constructor) provides an instance with proper configurations. - Mappings:
Namespace Name official dn
intermediary net/minecraft/class_7157
named net/minecraft/command/CommandRegistryAccess
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
A policy on how to handle aTagKey
that does not resolve to an existing tag (unrecognized tag) inRegistryEntryLookup.getOptional(net.minecraft.registry.tag.TagKey)
.static interface
-
Method Summary
Modifier 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 CommandRegistryAccess
of
(RegistryWrapper.WrapperLookup wrapperLookup, FeatureSet enabledFeatures)
-
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 a
Ldn;a(Laev;)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;
-
of
static CommandRegistryAccess of(RegistryWrapper.WrapperLookup wrapperLookup, FeatureSet enabledFeatures) - Mappings:
Namespace Name Mixin selector official a
Ldn;a(Lhg$b;Lcec;)Ldn;
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
static CommandRegistryAccess.EntryListCreationPolicySettable of(DynamicRegistryManager registryManager, FeatureSet enabledFeatures) - Mappings:
Namespace Name Mixin selector official a
Ldn;a(Lhr;Lcec;)Ldn$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;
-