yarn/mappings/net/minecraft/command/CommandRegistryAccess.mapping

19 lines
1.2 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.
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 net.minecraft.tag.TagKey} that does not resolve
COMMENT to an existing tag (unrecognized tag) in {@link CommandRegistryWrapper#getEntryList}.
FIELD field_37824 Lnet/minecraft/class_7157$class_7158;
COMMENT Creates a new {@link net.minecraft.util.registry.RegistryEntryList}, stores it and returns it.
FIELD field_37826 Lnet/minecraft/class_7157$class_7158;
COMMENT Returns {@link java.util.Optional#empty()}.