net.minecraft.command.argument

public class RegistryEntryPredicateArgumentType<T>

implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntryPredicateArgumentType$EntryPredicate<T>>

net.minecraft.commands.arguments.ResourceOrTagArgument
net.minecraft.class_7737
net.minecraft.command.argument.RegistryEntryPredicateArgumentType

Field summary

Modifier and TypeField
private static final Collection<String>
EXAMPLES
field_40417
EXAMPLES
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_UNKNOWN_TAG
field_40418
NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_INVALID_TAG_TYPE
field_40419
WRONG_TYPE_EXCEPTION
private final RegistryWrapper<T>
registryLookup
field_40420
registryWrapper
private final RegistryKey<? extends Registry<T>>
registryKey
field_40421
registryRef

Constructor summary

ModifierConstructor
public (CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef)

Method summary

Modifier and TypeMethod
public static <T> RegistryEntryPredicateArgumentType<T>
resourceOrTag(CommandBuildContext context, ResourceKey<? extends Registry<T>> key)
method_45637(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess)
public static <T> RegistryEntryPredicateArgumentType$EntryPredicate<T>
getResourceOrTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey)
method_45636(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2)
getRegistryEntryPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef)
public RegistryEntryPredicateArgumentType$EntryPredicate<T>
parse(com.mojang.brigadier.StringReader reader)
method_45635(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public Collection<String>
getExamples()
public Object
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
private com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$parse$6(com.mojang.brigadier.StringReader arg0, Identifier arg1)
method_45634(com.mojang.brigadier.StringReader arg0, class_2960 arg1)
method_45634(com.mojang.brigadier.StringReader arg0, Identifier arg1)
private com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$parse$5(com.mojang.brigadier.StringReader arg0, Identifier arg1)
method_45641(com.mojang.brigadier.StringReader arg0, class_2960 arg1)
method_45641(com.mojang.brigadier.StringReader arg0, Identifier arg1)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$getResourceOrTag$4(ResourceOrTagArgument$Result arg0, ResourceKey arg1)
method_45638(class_7737$class_7741 arg0, class_5321 arg1)
method_45638(RegistryEntryPredicateArgumentType$EntryPredicate arg0, RegistryKey arg1)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$getResourceOrTag$3(ResourceKey arg0, HolderSet$Named arg1)
method_45633(class_5321 arg0, class_6885$class_6888 arg1)
method_45633(RegistryKey arg0, RegistryEntryList$Named entryList)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$getResourceOrTag$2(ResourceKey arg0, Holder$Reference arg1)
method_45632(class_5321 arg0, class_6880$class_6883 arg1)
method_45632(RegistryKey arg0, RegistryEntry$Reference entry)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0, Object arg1, Object arg2)
method_45640(Object arg0, Object arg1, Object arg2)
method_45640(Object tag, Object type, Object expectedType)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0, Object arg1)
method_45639(Object arg0, Object arg1)
method_45639(Object tag, Object type)