类 ResourceKeyArgument<T>
java.lang.Object
net.minecraft.commands.arguments.ResourceKeyArgument<T>
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<ResourceKey<T>>
public class ResourceKeyArgument<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceKey<T>>
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection
<String> (专用程序包) final ResourceKey
<? extends Registry<T>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static AdvancementHolder
getAdvancement
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_363876_, String p_366830_) static Holder.Reference
<ConfiguredFeature<?, ?>> getConfiguredFeature
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_249310_, String p_250729_) static RecipeHolder
<?> getRecipe
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_366414_, String p_369561_) private static <T> Registry
<T> getRegistry
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212379_, ResourceKey<? extends Registry<T>> p_212380_) private static <T> ResourceKey
<T> getRegistryKey
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212374_, String p_212375_, ResourceKey<Registry<T>> p_212376_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_212377_) static Holder.Reference
<Structure> getStructure
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248804_, String p_251331_) getStructureTemplatePool
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_252203_, String p_250407_) static <T> ResourceKeyArgument
<T> key
(ResourceKey<? extends Registry<T>> p_212387_) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_212399_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212400_) parse
(com.mojang.brigadier.StringReader p_212369_) private static <T> Holder.Reference
<T> resolveKey
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248662_, String p_252172_, ResourceKey<Registry<T>> p_249701_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_249790_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
parse
-
字段详细资料
-
EXAMPLES
-
ERROR_INVALID_FEATURE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_FEATURE -
ERROR_INVALID_STRUCTURE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_STRUCTURE -
ERROR_INVALID_TEMPLATE_POOL
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_TEMPLATE_POOL -
ERROR_INVALID_RECIPE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_RECIPE -
ERROR_INVALID_ADVANCEMENT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_ADVANCEMENT -
registryKey
-
-
构造器详细资料
-
ResourceKeyArgument
-
-
方法详细资料
-
key
-
getRegistryKey
private static <T> ResourceKey<T> getRegistryKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212374_, String p_212375_, ResourceKey<Registry<T>> p_212376_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_212377_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRegistry
private static <T> Registry<T> getRegistry(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_212379_, ResourceKey<? extends Registry<T>> p_212380_) -
resolveKey
private static <T> Holder.Reference<T> resolveKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248662_, String p_252172_, ResourceKey<Registry<T>> p_249701_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_249790_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getConfiguredFeature
public static Holder.Reference<ConfiguredFeature<?,?>> getConfiguredFeature(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_249310_, String p_250729_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getStructure
public static Holder.Reference<Structure> getStructure(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248804_, String p_251331_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getStructureTemplatePool
public static Holder.Reference<StructureTemplatePool> getStructureTemplatePool(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_252203_, String p_250407_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRecipe
public static RecipeHolder<?> getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_366414_, String p_369561_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdvancement
public static AdvancementHolder getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_363876_, String p_366830_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public ResourceKey<T> parse(com.mojang.brigadier.StringReader p_212369_) 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_212399_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212400_) - 指定者:
listSuggestions
在接口中com.mojang.brigadier.arguments.ArgumentType<T>
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<T>
-