Package net.minecraft.commands.arguments
Class ResourceOrTagKeyArgument<T>
java.lang.Object
net.minecraft.commands.arguments.ResourceOrTagKeyArgument<T>
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<ResourceOrTagKeyArgument.Result<T>>
public class ResourceOrTagKeyArgument<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceOrTagKeyArgument.Result<T>>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class(package private) static final recordstatic interface(package private) static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Collection<String>(package private) final ResourceKey<? extends Registry<T>>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> ResourceOrTagKeyArgument.Result<T>getResourceOrTagKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_252162_, String p_248628_, ResourceKey<Registry<T>> p_249008_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_251387_) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_251659_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_251141_) parse(com.mojang.brigadier.StringReader p_250307_) static <T> ResourceOrTagKeyArgument<T>resourceOrTagKey(ResourceKey<? extends Registry<T>> p_249175_) 
- 
Field Details- 
EXAMPLES
- 
registryKey
 
- 
- 
Constructor Details- 
ResourceOrTagKeyArgument
 
- 
- 
Method Details- 
resourceOrTagKeypublic static <T> ResourceOrTagKeyArgument<T> resourceOrTagKey(ResourceKey<? extends Registry<T>> p_249175_) 
- 
getResourceOrTagKeypublic static <T> ResourceOrTagKeyArgument.Result<T> getResourceOrTagKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_252162_, String p_248628_, ResourceKey<Registry<T>> p_249008_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_251387_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
parsepublic ResourceOrTagKeyArgument.Result<T> parse(com.mojang.brigadier.StringReader p_250307_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<T>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
listSuggestionspublic <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_251659_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_251141_) - Specified by:
- listSuggestionsin interface- com.mojang.brigadier.arguments.ArgumentType<T>
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<T>
 
 
-