net.minecraft.server.command

public class ItemCommand

net.minecraft.server.commands.ItemCommands
net.minecraft.server.commands.ItemCommands
net.minecraft.class_5687
net.minecraft.server.command.ItemCommand

Field summary

Modifier and TypeField
static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_TARGET_NOT_A_CONTAINER
ERROR_TARGET_NOT_A_CONTAINER
field_28018
NOT_A_CONTAINER_TARGET_EXCEPTION
static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_SOURCE_NOT_A_CONTAINER
ERROR_SOURCE_NOT_A_CONTAINER
field_28020
NOT_A_CONTAINER_SOURCE_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_TARGET_INAPPLICABLE_SLOT
ERROR_TARGET_INAPPLICABLE_SLOT
field_28019
NO_SUCH_SLOT_TARGET_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_SOURCE_INAPPLICABLE_SLOT
ERROR_SOURCE_INAPPLICABLE_SLOT
field_28021
NO_SUCH_SLOT_SOURCE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_TARGET_NO_CHANGES
ERROR_TARGET_NO_CHANGES
field_28022
NO_CHANGES_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_TARGET_NO_CHANGES_KNOWN_ITEM
ERROR_TARGET_NO_CHANGES_KNOWN_ITEM
field_28023
KNOWN_ITEM_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_32707(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
private static int
modifyBlockItem(CommandSourceStack source, BlockPos pos, int slot, Holder<LootItemFunction> modifier)
modifyBlockItem(CommandSourceStack source, BlockPos pos, int slot, Holder<LootItemFunction> modifier)
method_32718(class_2168 arg0, class_2338 arg1, int arg2, class_6880<class_117> arg3)
executeBlockModify(ServerCommandSource source, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction)
private static int
modifyEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, Holder<LootItemFunction> modifier)
modifyEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, Holder<LootItemFunction> modifier)
method_32725(class_2168 arg0, Collection<? extends class_1297> arg1, int arg2, class_6880<class_117> arg3)
executeEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction)
private static int
setBlockItem(CommandSourceStack source, BlockPos pos, int slot, ItemStack itemStack)
setBlockItem(CommandSourceStack source, BlockPos pos, int slot, ItemStack itemStack)
method_32717(class_2168 arg0, class_2338 arg1, int arg2, class_1799 arg3)
executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack)
static Inventory
getContainer(CommandSourceStack source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exceptionType)
getContainer(CommandSourceStack source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exceptionType)
method_32723(class_2168 arg0, class_2338 arg1, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType arg2)
getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception)
private static int
setEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, ItemStack itemStack)
setEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, ItemStack itemStack)
method_32724(class_2168 arg0, Collection<? extends class_1297> arg1, int arg2, class_1799 arg3)
executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack)
private static int
blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot)
blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot)
method_32721(class_2168 arg0, class_2338 arg1, int arg2, Collection<? extends class_1297> arg3, int arg4)
executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot)
private static int
blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier)
blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier)
method_32722(class_2168 arg0, class_2338 arg1, int arg2, Collection<? extends class_1297> arg3, int arg4, class_6880<class_117> arg5)
executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction)
private static int
blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot)
blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot)
method_32719(class_2168 arg0, class_2338 arg1, int arg2, class_2338 arg3, int arg4)
executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot)
private static int
blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier)
blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier)
method_32720(class_2168 arg0, class_2338 arg1, int arg2, class_2338 arg3, int arg4, class_6880<class_117> arg5)
executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction)
private static int
entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot)
entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot)
method_32711(class_2168 arg0, class_1297 arg1, int arg2, class_2338 arg3, int arg4)
executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot)
private static int
entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier)
entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier)
method_32712(class_2168 arg0, class_1297 arg1, int arg2, class_2338 arg3, int arg4, class_6880<class_117> arg5)
executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, RegistryEntry<LootFunction> lootFunction)
private static int
entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot)
entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot)
method_32713(class_2168 arg0, class_1297 arg1, int arg2, Collection<? extends class_1297> arg3, int arg4)
executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot)
private static int
entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier)
entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier)
method_32714(class_2168 arg0, class_1297 arg1, int arg2, Collection<? extends class_1297> arg3, int arg4, class_6880<class_117> arg5)
executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, RegistryEntry<LootFunction> lootFunction)
private static ItemStack
applyModifier(CommandSourceStack source, Holder<LootItemFunction> modifier, ItemStack item)
applyModifier(CommandSourceStack source, Holder<LootItemFunction> modifier, ItemStack item)
method_32715(class_2168 arg0, class_6880<class_117> arg1, class_1799 arg2)
getStackWithModifier(ServerCommandSource source, RegistryEntry<LootFunction> lootFunction, ItemStack stack)
private static ItemStack
getItemInSlot(SlotProvider slotProvider, int slot)
getItemInSlot(SlotProvider slotProvider, int slot)
method_32706(class_12260 arg0, int arg1)
getStackInSlot(StackReferenceGetter arg0, int slotId)
private static ItemStack
getBlockItem(CommandSourceStack source, BlockPos pos, int slot)
getBlockItem(CommandSourceStack source, BlockPos pos, int slot)
method_32716(class_2168 arg0, class_2338 arg1, int arg2)
getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId)