mirror of https://github.com/FabricMC/yarn.git
38 lines
1.9 KiB
Plaintext
38 lines
1.9 KiB
Plaintext
CLASS net/minecraft/class_7225 net/minecraft/command/CommandRegistryWrapper
|
|
COMMENT A wrapper of a registry, used in command arguments.
|
|
COMMENT
|
|
COMMENT <p>The methods in this class in most cases perform the same as ones defined
|
|
COMMENT in {@link Registry}. However, subclasses may have slightly different behaviors
|
|
COMMENT to make it easier to handle user-passed arguments. For example, {@link #getEntryList(TagKey)}
|
|
COMMENT may return an empty {@link RegistryEntryList} instead of {@link Optional.empty()}.
|
|
COMMENT
|
|
COMMENT <p>A wrapper without any special behaviors can be created by calling {#link of(Registry)}.
|
|
METHOD method_41700 getEntryList (Lnet/minecraft/class_6862;)Ljava/util/Optional;
|
|
COMMENT {@return the entry list for the provided tag}
|
|
COMMENT
|
|
COMMENT <p>Implementations have different behaviors for unrecognized tags. The
|
|
COMMENT {@linkplain CommandRegistryWrapper.Impl#getEntryList default implementation}
|
|
COMMENT returns {@link Optional.empty()}; however, the ones created by
|
|
COMMENT {@link CommandRegistryAccess#createWrapper} can create and return a new entry list, or
|
|
COMMENT return an empty entry list.
|
|
COMMENT
|
|
COMMENT @see Registry#getEntryList
|
|
COMMENT @see CommandRegistryAccess.EntryListCreationPolicy
|
|
ARG 1 tag
|
|
METHOD method_42017 streamKeys ()Ljava/util/stream/Stream;
|
|
COMMENT {@return a stream of registry keys defined in the wrapped registry}
|
|
COMMENT
|
|
COMMENT @see Registry#getKeys
|
|
METHOD method_42018 of (Lnet/minecraft/class_2378;)Lnet/minecraft/class_7225;
|
|
COMMENT {@return a new wrapper for the {@code registry} without any special behaviors}
|
|
ARG 0 registry
|
|
METHOD method_42019 getEntry (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
|
COMMENT @see Registry#getEntry
|
|
ARG 1 key
|
|
METHOD method_42020 streamTags ()Ljava/util/stream/Stream;
|
|
COMMENT @see Registry#streamTags
|
|
CLASS class_7226 Impl
|
|
FIELD field_37996 registry Lnet/minecraft/class_2378;
|
|
METHOD <init> (Lnet/minecraft/class_2378;)V
|
|
ARG 1 registry
|