net.minecraft.commands.arguments

public class SlotArgument

implements com.mojang.brigadier.arguments.ArgumentType<Integer>

ew
net.minecraft.commands.arguments.SlotArgument
net.minecraft.class_2240
net.minecraft.command.argument.ItemSlotArgumentType
net.minecraft.src.C_4195_
net.minecraft.commands.arguments.ArgumentInventorySlot

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_9956
EXAMPLES
f_111271_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_UNKNOWN_SLOT
field_9955
UNKNOWN_SLOT_EXCEPTION
f_111272_
private static final Map<String, Integer>
c
SLOTS
field_9957
SLOT_NAMES_TO_SLOT_COMMAND_ID
f_111273_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static SlotArgument
a()
slot()
method_9473()
itemSlot()
m_111276_()
public static int
a(com.mojang.brigadier.context.CommandContext<ds> arg0, String arg1)
getSlot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9469(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_111279_(com.mojang.brigadier.context.CommandContext<C_2969_> p_111280_, String p_111281_)
public Integer
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_9470(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_111289_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()