mirror of https://github.com/FabricMC/yarn.git
31 lines
1.8 KiB
Plaintext
31 lines
1.8 KiB
Plaintext
CLASS net/minecraft/class_7157 net/minecraft/command/CommandRegistryAccess
|
|
COMMENT A class that creates {@link CommandRegistryWrapper} with ability to set a policy on
|
|
COMMENT how to handle unrecognized tags.
|
|
COMMENT
|
|
COMMENT @apiNote You usually do not need to create your own instance; the command registration
|
|
COMMENT callbacks (such as {@link net.minecraft.server.command.CommandManager} constructor)
|
|
COMMENT provides an instance with proper configurations.
|
|
FIELD field_37820 dynamicRegistryManager Lnet/minecraft/class_5455;
|
|
FIELD field_37821 entryListCreationPolicy Lnet/minecraft/class_7157$class_7158;
|
|
METHOD <init> (Lnet/minecraft/class_5455;)V
|
|
ARG 1 dynamicRegistryManager
|
|
METHOD method_41698 setEntryListCreationPolicy (Lnet/minecraft/class_7157$class_7158;)V
|
|
COMMENT Sets the policy on how to handle unrecognized tags.
|
|
COMMENT
|
|
COMMENT <p>See {@link CommandRegistryAccess.EntryListCreationPolicy} for the description of
|
|
COMMENT each policy.
|
|
ARG 1 entryListCreationPolicy
|
|
METHOD method_41699 createWrapper (Lnet/minecraft/class_5321;)Lnet/minecraft/class_7225;
|
|
COMMENT Creates a registry wrapper that follows the entry list creation policy.
|
|
ARG 1 registryRef
|
|
COMMENT the registry key of the registry to wrap
|
|
CLASS class_7158 EntryListCreationPolicy
|
|
COMMENT A policy on how to handle a {@link TagKey} that does not resolve to an existing
|
|
COMMENT tag (unrecognized tag) in {@link CommandRegistryWrapper#getEntryList}.
|
|
FIELD field_37824 Lnet/minecraft/class_7157$class_7158;
|
|
COMMENT Creates a new {@link RegistryEntryList}, stores it and returns it.
|
|
FIELD field_37825 Lnet/minecraft/class_7157$class_7158;
|
|
COMMENT Returns a new, empty {@link RegistryEntryList} every time.
|
|
FIELD field_37826 Lnet/minecraft/class_7157$class_7158;
|
|
COMMENT Returns {@link Optional.empty()}.
|