类 SlotArgument
java.lang.Object
net.minecraft.commands.arguments.SlotArgument
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<Integer>
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection
<String> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static int
getSlot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_111280_, String p_111281_) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_111288_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_111289_) parse
(com.mojang.brigadier.StringReader p_111278_) static SlotArgument
slot()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
parse
-
字段详细资料
-
EXAMPLES
-
ERROR_UNKNOWN_SLOT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_SLOT -
ERROR_ONLY_SINGLE_SLOT_ALLOWED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ONLY_SINGLE_SLOT_ALLOWED
-
-
构造器详细资料
-
SlotArgument
public SlotArgument()
-
-
方法详细资料
-
slot
-
getSlot
public static int getSlot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_111280_, String p_111281_) -
parse
public Integer parse(com.mojang.brigadier.StringReader p_111278_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<Integer>
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_111288_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_111289_) - 指定者:
listSuggestions
在接口中com.mojang.brigadier.arguments.ArgumentType<Integer>
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<Integer>
-