Package net.minecraft.server.command
Class ItemCommand
java.lang.Object
net.minecraft.server.command.ItemCommand
public class ItemCommand extends Object
- Mappings:
Namespace Name official xwintermediary net/minecraft/class_5687named net/minecraft/server/command/ItemCommand
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeKNOWN_ITEM_EXCEPTIONprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>MODIFIER_SUGGESTION_PROVIDERprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeNO_CHANGES_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeNO_SUCH_SLOT_SOURCE_EXCEPTION(package private) static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeNO_SUCH_SLOT_TARGET_EXCEPTIONprivate static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypeNOT_A_CONTAINER_SOURCE_EXCEPTION(package private) static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypeNOT_A_CONTAINER_TARGET_EXCEPTION -
Constructor Summary
Constructors Constructor Description ItemCommand() -
Method Summary
Modifier and Type Method Description private 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, LootFunction modifier)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, LootFunction modifier)private static intexecuteBlockModify(ServerCommandSource source, BlockPos pos, int slot, LootFunction modifier)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, LootFunction modifier)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, LootFunction modifier)private static intexecuteEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier)private static intexecuteEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack)private static ItemStackmethod_32706(Entity entity, int int2)private static ItemStackmethod_32715(ServerCommandSource serverCommandSource, LootFunction lootFunction, ItemStack itemStack)private static ItemStackmethod_32716(ServerCommandSource serverCommandSource, BlockPos blockPos, int int2)private static Inventorymethod_32723(ServerCommandSource serverCommandSource, BlockPos blockPos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType dynamic3CommandExceptionType)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
NOT_A_CONTAINER_TARGET_EXCEPTION
static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NOT_A_CONTAINER_TARGET_EXCEPTION- Mappings:
Namespace Name Mixin selector official aLxw;a:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;intermediary field_28018Lnet/minecraft/class_5687;field_28018:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;named NOT_A_CONTAINER_TARGET_EXCEPTIONLnet/minecraft/server/command/ItemCommand;NOT_A_CONTAINER_TARGET_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
-
NOT_A_CONTAINER_SOURCE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NOT_A_CONTAINER_SOURCE_EXCEPTION- Mappings:
Namespace Name Mixin selector official cLxw;c:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;intermediary field_28020Lnet/minecraft/class_5687;field_28020:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;named NOT_A_CONTAINER_SOURCE_EXCEPTIONLnet/minecraft/server/command/ItemCommand;NOT_A_CONTAINER_SOURCE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
-
NO_SUCH_SLOT_TARGET_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_SUCH_SLOT_TARGET_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLxw;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_28019Lnet/minecraft/class_5687;field_28019:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named NO_SUCH_SLOT_TARGET_EXCEPTIONLnet/minecraft/server/command/ItemCommand;NO_SUCH_SLOT_TARGET_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
NO_SUCH_SLOT_SOURCE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_SUCH_SLOT_SOURCE_EXCEPTION- Mappings:
Namespace Name Mixin selector official dLxw;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_28021Lnet/minecraft/class_5687;field_28021:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named NO_SUCH_SLOT_SOURCE_EXCEPTIONLnet/minecraft/server/command/ItemCommand;NO_SUCH_SLOT_SOURCE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
NO_CHANGES_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_CHANGES_EXCEPTION- Mappings:
Namespace Name Mixin selector official eLxw;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_28022Lnet/minecraft/class_5687;field_28022:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named NO_CHANGES_EXCEPTIONLnet/minecraft/server/command/ItemCommand;NO_CHANGES_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
KNOWN_ITEM_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType KNOWN_ITEM_EXCEPTION- Mappings:
Namespace Name Mixin selector official fLxw;f:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;intermediary field_28023Lnet/minecraft/class_5687;field_28023:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;named KNOWN_ITEM_EXCEPTIONLnet/minecraft/server/command/ItemCommand;KNOWN_ITEM_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
MODIFIER_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> MODIFIER_SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector official gLxw;g:Lcom/mojang/brigadier/suggestion/SuggestionProvider;intermediary field_28024Lnet/minecraft/class_5687;field_28024:Lcom/mojang/brigadier/suggestion/SuggestionProvider;named MODIFIER_SUGGESTION_PROVIDERLnet/minecraft/server/command/ItemCommand;MODIFIER_SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
-
Constructor Details
-
ItemCommand
public ItemCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)- Mappings:
Namespace Name Mixin selector official aLxw;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_32707Lnet/minecraft/class_5687;method_32707(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/ItemCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
executeBlockModify
private static int executeBlockModify(ServerCommandSource source, BlockPos pos, int slot, LootFunction modifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Lfx;ILdft;)Iintermediary method_32718Lnet/minecraft/class_5687;method_32718(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_117;)Inamed executeBlockModifyLnet/minecraft/server/command/ItemCommand;executeBlockModify(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/loot/function/LootFunction;)I
-
executeEntityModify
private static int executeEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Ljava/util/Collection;ILdft;)Iintermediary method_32725Lnet/minecraft/class_5687;method_32725(Lnet/minecraft/class_2168;Ljava/util/Collection;ILnet/minecraft/class_117;)Inamed executeEntityModifyLnet/minecraft/server/command/ItemCommand;executeEntityModify(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;ILnet/minecraft/loot/function/LootFunction;)I
-
executeBlockReplace
private 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 official aLxw;a(Ldb;Lfx;ILbnv;)Iintermediary method_32717Lnet/minecraft/class_5687;method_32717(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_1799;)Inamed executeBlockReplaceLnet/minecraft/server/command/ItemCommand;executeBlockReplace(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/item/ItemStack;)I
-
method_32723
private static Inventory method_32723(ServerCommandSource serverCommandSource, BlockPos blockPos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType dynamic3CommandExceptionType) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Lfx;Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;)Lapj;intermediary method_32723Lnet/minecraft/class_5687;method_32723(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;)Lnet/minecraft/class_1263;named method_32723Lnet/minecraft/server/command/ItemCommand;method_32723(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;)Lnet/minecraft/inventory/Inventory;
-
executeEntityReplace
private 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 official aLxw;a(Ldb;Ljava/util/Collection;ILbnv;)Iintermediary method_32724Lnet/minecraft/class_5687;method_32724(Lnet/minecraft/class_2168;Ljava/util/Collection;ILnet/minecraft/class_1799;)Inamed executeEntityReplaceLnet/minecraft/server/command/ItemCommand;executeEntityReplace(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;ILnet/minecraft/item/ItemStack;)I
-
executeEntityCopyBlock
private 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 official aLxw;a(Ldb;Lfx;ILjava/util/Collection;I)Iintermediary method_32721Lnet/minecraft/class_5687;method_32721(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILjava/util/Collection;I)Inamed executeEntityCopyBlockLnet/minecraft/server/command/ItemCommand;executeEntityCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILjava/util/Collection;I)I
-
executeEntityCopyBlock
private static int executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Lfx;ILjava/util/Collection;ILdft;)Iintermediary method_32722Lnet/minecraft/class_5687;method_32722(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILjava/util/Collection;ILnet/minecraft/class_117;)Inamed executeEntityCopyBlockLnet/minecraft/server/command/ItemCommand;executeEntityCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILjava/util/Collection;ILnet/minecraft/loot/function/LootFunction;)I
-
executeBlockCopyBlock
private 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 official aLxw;a(Ldb;Lfx;ILfx;I)Iintermediary method_32719Lnet/minecraft/class_5687;method_32719(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_2338;I)Inamed executeBlockCopyBlockLnet/minecraft/server/command/ItemCommand;executeBlockCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/BlockPos;I)I
-
executeBlockCopyBlock
private static int executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Lfx;ILfx;ILdft;)Iintermediary method_32720Lnet/minecraft/class_5687;method_32720(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;ILnet/minecraft/class_2338;ILnet/minecraft/class_117;)Inamed executeBlockCopyBlockLnet/minecraft/server/command/ItemCommand;executeBlockCopyBlock(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/util/math/BlockPos;ILnet/minecraft/loot/function/LootFunction;)I
-
executeBlockCopyEntity
private 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 official aLxw;a(Ldb;Laqv;ILfx;I)Iintermediary method_32711Lnet/minecraft/class_5687;method_32711(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILnet/minecraft/class_2338;I)Inamed executeBlockCopyEntityLnet/minecraft/server/command/ItemCommand;executeBlockCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILnet/minecraft/util/math/BlockPos;I)I
-
executeBlockCopyEntity
private static int executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Laqv;ILfx;ILdft;)Iintermediary method_32712Lnet/minecraft/class_5687;method_32712(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILnet/minecraft/class_2338;ILnet/minecraft/class_117;)Inamed executeBlockCopyEntityLnet/minecraft/server/command/ItemCommand;executeBlockCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILnet/minecraft/util/math/BlockPos;ILnet/minecraft/loot/function/LootFunction;)I
-
executeEntityCopyEntity
private 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 official aLxw;a(Ldb;Laqv;ILjava/util/Collection;I)Iintermediary method_32713Lnet/minecraft/class_5687;method_32713(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILjava/util/Collection;I)Inamed executeEntityCopyEntityLnet/minecraft/server/command/ItemCommand;executeEntityCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILjava/util/Collection;I)I
-
executeEntityCopyEntity
private static int executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Laqv;ILjava/util/Collection;ILdft;)Iintermediary method_32714Lnet/minecraft/class_5687;method_32714(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;ILjava/util/Collection;ILnet/minecraft/class_117;)Inamed executeEntityCopyEntityLnet/minecraft/server/command/ItemCommand;executeEntityCopyEntity(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;ILjava/util/Collection;ILnet/minecraft/loot/function/LootFunction;)I
-
method_32715
private static ItemStack method_32715(ServerCommandSource serverCommandSource, LootFunction lootFunction, ItemStack itemStack)- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Ldft;Lbnv;)Lbnv;intermediary method_32715Lnet/minecraft/class_5687;method_32715(Lnet/minecraft/class_2168;Lnet/minecraft/class_117;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named method_32715Lnet/minecraft/server/command/ItemCommand;method_32715(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/loot/function/LootFunction;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
method_32706
private static ItemStack method_32706(Entity entity, int int2) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Laqv;I)Lbnv;intermediary method_32706Lnet/minecraft/class_5687;method_32706(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_1799;named method_32706Lnet/minecraft/server/command/ItemCommand;method_32706(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/item/ItemStack;
-
method_32716
private static ItemStack method_32716(ServerCommandSource serverCommandSource, BlockPos blockPos, int int2) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLxw;a(Ldb;Lfx;I)Lbnv;intermediary method_32716Lnet/minecraft/class_5687;method_32716(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_1799;named method_32716Lnet/minecraft/server/command/ItemCommand;method_32716(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/item/ItemStack;
-