Package net.minecraft.server.command
Class ItemCommand
java.lang.Object
net.minecraft.server.command.ItemCommand
- Mappings:
- Namespace - Name - named - net/minecraft/server/command/ItemCommand- intermediary - net/minecraft/class_5687- official - ani
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType(package private) static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType(package private) static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intexecuteBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot) private static intexecuteBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction) private static intexecuteBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static intexecuteBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction) private static intexecuteBlockModify(ServerCommandSource source, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction) private static intexecuteBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack) private static intexecuteEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intexecuteEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction) private static intexecuteEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intexecuteEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction) private static intexecuteEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction) private static intexecuteEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) (package private) static InventorygetInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception) private static ItemStackgetStackInSlot(Entity entity, int slotId) private static ItemStackgetStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId) private static ItemStackgetStackWithModifier(ServerCommandSource source, RegistryEntry<LootFunction> lootFunction, ItemStack stack) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) 
- 
Field Details- 
NOT_A_CONTAINER_TARGET_EXCEPTIONstatic final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NOT_A_CONTAINER_TARGET_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NOT_A_CONTAINER_TARGET_EXCEPTION- Lnet/minecraft/server/command/ItemCommand;NOT_A_CONTAINER_TARGET_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- intermediary - field_28018- Lnet/minecraft/class_5687;field_28018:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- official - a- Lani;a:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
 
- 
NOT_A_CONTAINER_SOURCE_EXCEPTIONstatic final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NOT_A_CONTAINER_SOURCE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NOT_A_CONTAINER_SOURCE_EXCEPTION- Lnet/minecraft/server/command/ItemCommand;NOT_A_CONTAINER_SOURCE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- intermediary - field_28020- Lnet/minecraft/class_5687;field_28020:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- official - b- Lani;b:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
 
- 
NO_SUCH_SLOT_TARGET_EXCEPTIONstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_SUCH_SLOT_TARGET_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NO_SUCH_SLOT_TARGET_EXCEPTION- Lnet/minecraft/server/command/ItemCommand;NO_SUCH_SLOT_TARGET_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_28019- Lnet/minecraft/class_5687;field_28019:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - c- Lani;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
NO_SUCH_SLOT_SOURCE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_SUCH_SLOT_SOURCE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NO_SUCH_SLOT_SOURCE_EXCEPTION- Lnet/minecraft/server/command/ItemCommand;NO_SUCH_SLOT_SOURCE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_28021- Lnet/minecraft/class_5687;field_28021:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - d- Lani;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
NO_CHANGES_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_CHANGES_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NO_CHANGES_EXCEPTION- Lnet/minecraft/server/command/ItemCommand;NO_CHANGES_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_28022- Lnet/minecraft/class_5687;field_28022:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - e- Lani;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
KNOWN_ITEM_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType KNOWN_ITEM_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - KNOWN_ITEM_EXCEPTION- Lnet/minecraft/server/command/ItemCommand;KNOWN_ITEM_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- intermediary - field_28023- Lnet/minecraft/class_5687;field_28023:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- official - f- Lani;f:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
 
- 
MODIFIER_SUGGESTION_PROVIDERprivate static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> MODIFIER_SUGGESTION_PROVIDER- Mappings:
- Namespace - Name - Mixin selector - named - MODIFIER_SUGGESTION_PROVIDER- Lnet/minecraft/server/command/ItemCommand;MODIFIER_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;- intermediary - field_28024- Lnet/minecraft/class_5687;field_28024:Lcom/mojang/brigadier/suggestion/SuggestionProvider;- official - g- Lani;g:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
 
 
- 
- 
Constructor Details- 
ItemCommandpublic ItemCommand()
 
- 
- 
Method Details- 
registerpublic static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) - Mappings:
- Namespace - Name - Mixin selector - named - register- Lnet/minecraft/server/command/ItemCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V- intermediary - method_32707- Lnet/minecraft/class_5687;method_32707(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V- official - a- Lani;a(Lcom/mojang/brigadier/CommandDispatcher;Let;)V
 
- 
executeBlockModifyprivate static int executeBlockModify(ServerCommandSource source, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBlockModify- Lnet/minecraft/server/command/ItemCommand;executeBlockModify(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_32718- Lnet/minecraft/class_5687;method_32718(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_6880;)I- official - a- Lani;a(Lex;Lji;ILjr;)I
 
- 
executeEntityModifyprivate static int executeEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeEntityModify- Lnet/minecraft/server/command/ItemCommand;executeEntityModify(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;ILnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_32725- Lnet/minecraft/class_5687;method_32725(Lnet/minecraft/class_2168;Ljava/util/Collection;ILnet/minecraft/class_6880;)I- official - a- Lani;a(Lex;Ljava/util/Collection;ILjr;)I
 
- 
executeBlockReplaceprivate static int executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBlockReplace- Lnet/minecraft/server/command/ItemCommand;executeBlockReplace(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/item/ItemStack;)I- intermediary - method_32717- Lnet/minecraft/class_5687;method_32717(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_1799;)I- official - a- Lani;a(Lex;Lji;ILcwq;)I
 
- 
getInventoryAtPosstatic Inventory getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getInventoryAtPos- Lnet/minecraft/server/command/ItemCommand;getInventoryAtPos(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;)Lnet/minecraft/inventory/Inventory;- intermediary - method_32723- Lnet/minecraft/class_5687;method_32723(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;)Lnet/minecraft/class_1263;- official - a- Lani;a(Lex;Lji;Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;)Lbse;
 
- 
executeEntityReplaceprivate static int executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeEntityReplace- Lnet/minecraft/server/command/ItemCommand;executeEntityReplace(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;ILnet/minecraft/item/ItemStack;)I- intermediary - method_32724- Lnet/minecraft/class_5687;method_32724(Lnet/minecraft/class_2168;Ljava/util/Collection;ILnet/minecraft/class_1799;)I- official - a- Lani;a(Lex;Ljava/util/Collection;ILcwq;)I
 
- 
executeEntityCopyBlockprivate static int executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeEntityCopyBlock- Lnet/minecraft/server/command/ItemCommand;executeEntityCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILjava/util/Collection;I)I- intermediary - method_32721- Lnet/minecraft/class_5687;method_32721(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILjava/util/Collection;I)I- official - a- Lani;a(Lex;Lji;ILjava/util/Collection;I)I
 
- 
executeEntityCopyBlockprivate static int executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeEntityCopyBlock- Lnet/minecraft/server/command/ItemCommand;executeEntityCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILjava/util/Collection;ILnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_32722- Lnet/minecraft/class_5687;method_32722(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILjava/util/Collection;ILnet/minecraft/class_6880;)I- official - a- Lani;a(Lex;Lji;ILjava/util/Collection;ILjr;)I
 
- 
executeBlockCopyBlockprivate static int executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBlockCopyBlock- Lnet/minecraft/server/command/ItemCommand;executeBlockCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/BlockPos;I)I- intermediary - method_32719- Lnet/minecraft/class_5687;method_32719(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_2338;I)I- official - a- Lani;a(Lex;Lji;ILji;I)I
 
- 
executeBlockCopyBlockprivate static int executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBlockCopyBlock- Lnet/minecraft/server/command/ItemCommand;executeBlockCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/BlockPos;ILnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_32720- Lnet/minecraft/class_5687;method_32720(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_2338;ILnet/minecraft/class_6880;)I- official - a- Lani;a(Lex;Lji;ILji;ILjr;)I
 
- 
executeBlockCopyEntityprivate static int executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBlockCopyEntity- Lnet/minecraft/server/command/ItemCommand;executeBlockCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILnet/minecraft/util/math/BlockPos;I)I- intermediary - method_32711- Lnet/minecraft/class_5687;method_32711(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILnet/minecraft/class_2338;I)I- official - a- Lani;a(Lex;Lbum;ILji;I)I
 
- 
executeBlockCopyEntityprivate static int executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBlockCopyEntity- Lnet/minecraft/server/command/ItemCommand;executeBlockCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILnet/minecraft/util/math/BlockPos;ILnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_32712- Lnet/minecraft/class_5687;method_32712(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILnet/minecraft/class_2338;ILnet/minecraft/class_6880;)I- official - a- Lani;a(Lex;Lbum;ILji;ILjr;)I
 
- 
executeEntityCopyEntityprivate static int executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeEntityCopyEntity- Lnet/minecraft/server/command/ItemCommand;executeEntityCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILjava/util/Collection;I)I- intermediary - method_32713- Lnet/minecraft/class_5687;method_32713(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILjava/util/Collection;I)I- official - a- Lani;a(Lex;Lbum;ILjava/util/Collection;I)I
 
- 
executeEntityCopyEntityprivate static int executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeEntityCopyEntity- Lnet/minecraft/server/command/ItemCommand;executeEntityCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILjava/util/Collection;ILnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_32714- Lnet/minecraft/class_5687;method_32714(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILjava/util/Collection;ILnet/minecraft/class_6880;)I- official - a- Lani;a(Lex;Lbum;ILjava/util/Collection;ILjr;)I
 
- 
getStackWithModifierprivate static ItemStack getStackWithModifier(ServerCommandSource source, RegistryEntry<LootFunction> lootFunction, ItemStack stack) - Mappings:
- Namespace - Name - Mixin selector - named - getStackWithModifier- Lnet/minecraft/server/command/ItemCommand;getStackWithModifier(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;- intermediary - method_32715- Lnet/minecraft/class_5687;method_32715(Lnet/minecraft/class_2168;Lnet/minecraft/class_6880;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;- official - a- Lani;a(Lex;Ljr;Lcwq;)Lcwq;
 
- 
getStackInSlotprivate static ItemStack getStackInSlot(Entity entity, int slotId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getStackInSlot- Lnet/minecraft/server/command/ItemCommand;getStackInSlot(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/item/ItemStack;- intermediary - method_32706- Lnet/minecraft/class_5687;method_32706(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_1799;- official - a- Lani;a(Lbum;I)Lcwq;
 
- 
getStackInSlotFromInventoryAtprivate static ItemStack getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getStackInSlotFromInventoryAt- Lnet/minecraft/server/command/ItemCommand;getStackInSlotFromInventoryAt(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/item/ItemStack;- intermediary - method_32716- Lnet/minecraft/class_5687;method_32716(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_1799;- official - a- Lani;a(Lex;Lji;I)Lcwq;
 
 
-