Class SlotSourceArgument
java.lang.Object
net.minecraft.commands.arguments.SlotSourceArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SlotSourceArgument.Result>
public class SlotSourceArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<SlotSourceArgument.Result>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> private final com.mojang.brigadier.arguments.ArgumentType<Holder<SlotSource>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotSourceArgument.ResultgetSlotSource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> contextBuilder, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) static SlotSourceArgumentslotSource(CommandBuildContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
-
holderArgument
-
-
Constructor Details
-
SlotSourceArgument
-
-
Method Details
-
slotSource
-
getSlotSource
public static SlotSourceArgument.Result getSlotSource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
parse
public SlotSourceArgument.Result parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<SlotSourceArgument.Result>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> contextBuilder, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<SlotSourceArgument.Result>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<SlotSourceArgument.Result>
-