Package net.minecraft.command.argument
Class ItemSlotArgumentType
java.lang.Object
net.minecraft.command.argument.ItemSlotArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Integer>
public class ItemSlotArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Integer>
- Mappings:
Namespace Name named net/minecraft/command/argument/ItemSlotArgumentType
intermediary net/minecraft/class_2240
official fy
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getItemSlot
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ItemSlotArgumentType
itemSlot()
<S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/ItemSlotArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_9956
Lnet/minecraft/class_2240;field_9956:Ljava/util/Collection;
official a
Lfy;a:Ljava/util/Collection;
-
UNKNOWN_SLOT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_SLOT_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNKNOWN_SLOT_EXCEPTION
Lnet/minecraft/command/argument/ItemSlotArgumentType;UNKNOWN_SLOT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9955
Lnet/minecraft/class_2240;field_9955:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official b
Lfy;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
ONLY_SINGLE_ALLOWED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ONLY_SINGLE_ALLOWED_EXCEPTION- Mappings:
Namespace Name Mixin selector named ONLY_SINGLE_ALLOWED_EXCEPTION
Lnet/minecraft/command/argument/ItemSlotArgumentType;ONLY_SINGLE_ALLOWED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_49766
Lnet/minecraft/class_2240;field_49766:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official c
Lfy;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
ItemSlotArgumentType
public ItemSlotArgumentType()
-
-
Method Details
-
itemSlot
- Mappings:
Namespace Name Mixin selector named itemSlot
Lnet/minecraft/command/argument/ItemSlotArgumentType;itemSlot()Lnet/minecraft/command/argument/ItemSlotArgumentType;
intermediary method_9473
Lnet/minecraft/class_2240;method_9473()Lnet/minecraft/class_2240;
official a
Lfy;a()Lfy;
-
getItemSlot
public static int getItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector named getItemSlot
Lnet/minecraft/command/argument/ItemSlotArgumentType;getItemSlot(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)I
intermediary method_9469
Lnet/minecraft/class_2240;method_9469(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)I
official a
Lfy;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)I
-
parse
public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/ItemSlotArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
intermediary method_9470
Lnet/minecraft/class_2240;method_9470(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
official a
Lfy;a(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) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/ItemSlotArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2240;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lfy;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-