类 ItemSlotArgumentType
- java.lang.Object
-
- net.minecraft.command.argument.ItemSlotArgumentType
-
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<Integer>
public class ItemSlotArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Integer>
- Mappings:
Namespace Name official egintermediary net/minecraft/class_2240named net/minecraft/command/argument/ItemSlotArgumentType
-
-
字段概要
字段 修饰符和类型 字段 说明 private static Collection<String>EXAMPLESprivate static Map<String,Integer>slotNamesToSlotCommandIdprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_SLOT_EXCEPTION
-
构造器概要
构造器 构造器 说明 ItemSlotArgumentType()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<String>getExamples()static intgetItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ItemSlotArgumentTypeitemSlot()<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)
-
-
-
字段详细资料
-
EXAMPLES
private static final Collection<String> EXAMPLES
- Mappings:
Namespace Name Mixin selector official aLeg;a:Ljava/util/Collection;intermediary field_9956Lnet/minecraft/class_2240;field_9956:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/ItemSlotArgumentType;EXAMPLES:Ljava/util/Collection;
-
UNKNOWN_SLOT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_SLOT_EXCEPTION
- Mappings:
Namespace Name Mixin selector official bLeg;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_9955Lnet/minecraft/class_2240;field_9955:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named UNKNOWN_SLOT_EXCEPTIONLnet/minecraft/command/argument/ItemSlotArgumentType;UNKNOWN_SLOT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
slotNamesToSlotCommandId
private static final Map<String,Integer> slotNamesToSlotCommandId
- Mappings:
Namespace Name Mixin selector official cLeg;c:Ljava/util/Map;intermediary field_9957Lnet/minecraft/class_2240;field_9957:Ljava/util/Map;named slotNamesToSlotCommandIdLnet/minecraft/command/argument/ItemSlotArgumentType;slotNamesToSlotCommandId:Ljava/util/Map;
-
-
方法详细资料
-
itemSlot
public static ItemSlotArgumentType itemSlot()
- Mappings:
Namespace Name Mixin selector official aLeg;a()Leg;intermediary method_9473Lnet/minecraft/class_2240;method_9473()Lnet/minecraft/class_2240;named itemSlotLnet/minecraft/command/argument/ItemSlotArgumentType;itemSlot()Lnet/minecraft/command/argument/ItemSlotArgumentType;
-
getItemSlot
public static int getItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
- Mappings:
Namespace Name Mixin selector official aLeg;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Iintermediary method_9469Lnet/minecraft/class_2240;method_9469(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Inamed getItemSlotLnet/minecraft/command/argument/ItemSlotArgumentType;getItemSlot(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 aLeg;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;intermediary method_9470Lnet/minecraft/class_2240;method_9470(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;named parseLnet/minecraft/command/argument/ItemSlotArgumentType;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 listSuggestionsLeg;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2240;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/ItemSlotArgumentType;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 getExamplesLeg;getExamples()Ljava/util/Collection;intermediary getExamplesLnet/minecraft/class_2240;getExamples()Ljava/util/Collection;named getExamplesLnet/minecraft/command/argument/ItemSlotArgumentType;getExamples()Ljava/util/Collection;
-
-