类 ResourceOrTagKeyArgument<T>
java.lang.Object
net.minecraft.commands.arguments.ResourceOrTagKeyArgument<T>
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<ResourceOrTagKeyArgument.Result<T>>
public class ResourceOrTagKeyArgument<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceOrTagKeyArgument.Result<T>>
-
嵌套类概要
嵌套类修饰符和类型类说明static class
(专用程序包) static final record
static interface
(专用程序包) static final record
-
字段概要
字段修饰符和类型字段说明private static final Collection
<String> (专用程序包) final ResourceKey
<? extends Registry<T>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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_) <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_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
parse
-
字段详细资料
-
EXAMPLES
-
registryKey
-
-
构造器详细资料
-
ResourceOrTagKeyArgument
-
-
方法详细资料
-
resourceOrTagKey
public static <T> ResourceOrTagKeyArgument<T> resourceOrTagKey(ResourceKey<? extends Registry<T>> p_249175_) -
getResourceOrTagKey
public 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 - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public ResourceOrTagKeyArgument.Result<T> parse(com.mojang.brigadier.StringReader p_250307_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<T>
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_251659_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_251141_) - 指定者:
listSuggestions
在接口中com.mojang.brigadier.arguments.ArgumentType<T>
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<T>
-