net.minecraft.commands.arguments

public class ResourceOrTagKeyArgument<T>

implements com.mojang.brigadier.arguments.ArgumentType<ResourceOrTagKeyArgument$Result<T>>

ga
net.minecraft.commands.arguments.ResourceOrTagKeyArgument
net.minecraft.class_7066
net.minecraft.command.argument.RegistryPredicateArgumentType
net.minecraft.commands.arguments.ResourceOrTagKeyArgument

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_37223
EXAMPLES
final ResourceKey<? extends Registry<T>>
b
registryKey
field_37226
registryRef

Constructor summary

ModifierConstructor
public (ResourceKey<? extends Registry<T>> registryRef)

Method summary

Modifier and TypeMethod
public static <T> ResourceOrTagKeyArgument<T>
a(aly<? extends kd<T>> arg0)
resourceOrTagKey(ResourceKey<? extends Registry<T>> arg0)
method_41170(class_5321<? extends class_2378<T>> arg0)
registryPredicate(RegistryKey<? extends Registry<T>> registryRef)
public static <T> ResourceOrTagKeyArgument$Result<T>
a(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1, aly<kd<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getResourceOrTagKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<Registry<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
method_41166(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException)
public ResourceOrTagKeyArgument$Result<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_41164(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> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
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()
getExamples()