类 ScoreboardSlotArgumentType
- java.lang.Object
-
- net.minecraft.command.argument.ScoreboardSlotArgumentType
-
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<Integer>
public class ScoreboardSlotArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Integer>
- Mappings:
Namespace Name official efintermediary net/minecraft/class_2239named net/minecraft/command/argument/ScoreboardSlotArgumentType
-
-
字段概要
字段 修饰符和类型 字段 说明 private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_SLOT_EXCEPTION
-
构造器概要
构造器 限定符 构造器 说明 privateScoreboardSlotArgumentType()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<String>getExamples()static intgetScoreboardSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)Integerparse(com.mojang.brigadier.StringReader stringReader)static ScoreboardSlotArgumentTypescoreboardSlot()
-
-
-
字段详细资料
-
EXAMPLES
private static final Collection<String> EXAMPLES
- Mappings:
Namespace Name Mixin selector official bLef;b:Ljava/util/Collection;intermediary field_9953Lnet/minecraft/class_2239;field_9953:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/ScoreboardSlotArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_SLOT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_SLOT_EXCEPTION
- Mappings:
Namespace Name Mixin selector official aLef;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_9954Lnet/minecraft/class_2239;field_9954:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named INVALID_SLOT_EXCEPTIONLnet/minecraft/command/argument/ScoreboardSlotArgumentType;INVALID_SLOT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
方法详细资料
-
scoreboardSlot
public static ScoreboardSlotArgumentType scoreboardSlot()
- Mappings:
Namespace Name Mixin selector official aLef;a()Lef;intermediary method_9468Lnet/minecraft/class_2239;method_9468()Lnet/minecraft/class_2239;named scoreboardSlotLnet/minecraft/command/argument/ScoreboardSlotArgumentType;scoreboardSlot()Lnet/minecraft/command/argument/ScoreboardSlotArgumentType;
-
getScoreboardSlot
public static int getScoreboardSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
- Mappings:
Namespace Name Mixin selector official aLef;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Iintermediary method_9465Lnet/minecraft/class_2239;method_9465(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Inamed getScoreboardSlotLnet/minecraft/command/argument/ScoreboardSlotArgumentType;getScoreboardSlot(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)I
-
parse
public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 指定者:
parse在接口中com.mojang.brigadier.arguments.ArgumentType<Integer>- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLef;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;intermediary method_9466Lnet/minecraft/class_2239;method_9466(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;named parseLnet/minecraft/command/argument/ScoreboardSlotArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
- 指定者:
listSuggestions在接口中com.mojang.brigadier.arguments.ArgumentType<Integer>- Mappings:
Namespace Name Mixin selector official listSuggestionsLef;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2239;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/ScoreboardSlotArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
public Collection<String> getExamples()
- 指定者:
getExamples在接口中com.mojang.brigadier.arguments.ArgumentType<Integer>- Mappings:
Namespace Name Mixin selector official getExamplesLef;getExamples()Ljava/util/Collection;intermediary getExamplesLnet/minecraft/class_2239;getExamples()Ljava/util/Collection;named getExamplesLnet/minecraft/command/argument/ScoreboardSlotArgumentType;getExamples()Ljava/util/Collection;
-
-