net.minecraft.server.commands

public class ItemCommands

and
net.minecraft.server.commands.ItemCommands
net.minecraft.class_5687
net.minecraft.server.command.ItemCommand
net.minecraft.src.C_141899_
net.minecraft.server.commands.ItemCommands

Field summary

Modifier and TypeField
static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
a
ERROR_TARGET_NOT_A_CONTAINER
field_28018
NOT_A_CONTAINER_TARGET_EXCEPTION
f_180236_
static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
b
ERROR_SOURCE_NOT_A_CONTAINER
field_28020
NOT_A_CONTAINER_SOURCE_EXCEPTION
f_180238_
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_TARGET_INAPPLICABLE_SLOT
field_28019
NO_SUCH_SLOT_TARGET_EXCEPTION
f_180237_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
d
ERROR_SOURCE_INAPPLICABLE_SLOT
field_28021
NO_SUCH_SLOT_SOURCE_EXCEPTION
f_180239_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
e
ERROR_TARGET_NO_CHANGES
field_28022
NO_CHANGES_EXCEPTION
f_180240_
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
f
ERROR_TARGET_NO_CHANGES_KNOWN_ITEM
field_28023
KNOWN_ITEM_EXCEPTION
f_180241_
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
g
SUGGEST_MODIFIER
field_28024
MODIFIER_SUGGESTION_PROVIDER
f_180242_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
a(com.mojang.brigadier.CommandDispatcher<et> arg0, ep arg1)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> arg0, CommandBuildContext arg1)
method_32707(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
m_214448_(com.mojang.brigadier.CommandDispatcher<C_2969_> p_214449_, C_213173_ p_214450_)
private static int
a(et arg0, jd arg1, int arg2, jm<etf> arg3)
modifyBlockItem(CommandSourceStack arg0, BlockPos arg1, int arg2, Holder<LootItemFunction> arg3)
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)
m_180296_(C_2969_ p_180297_, C_4675_ p_180298_, int p_180299_, C_203228_<C_2928_> p_332634_)
private static int
a(et arg0, Collection<? extends bsr> arg1, int arg2, jm<etf> arg3)
modifyEntityItem(CommandSourceStack arg0, Collection<? extends Entity> arg1, int arg2, Holder<LootItemFunction> arg3)
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)
m_180336_(C_2969_ p_180337_, Collection<? extends C_507_> p_180338_, int p_180339_, C_203228_<C_2928_> p_333636_)
private static int
a(et arg0, jd arg1, int arg2, cuq arg3)
setBlockItem(CommandSourceStack arg0, BlockPos arg1, int arg2, ItemStack arg3)
method_32717(class_2168 arg0, class_2338 arg1, int arg2, class_1799 arg3)
executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack)
m_180291_(C_2969_ p_180292_, C_4675_ p_180293_, int p_180294_, C_1391_ p_180295_)
static Container
a(et arg0, jd arg1, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType arg2)
getContainer(CommandSourceStack arg0, BlockPos arg1, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType arg2)
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)
m_180327_(C_2969_ p_180328_, C_4675_ p_180329_, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType p_180330_)
private static int
a(et arg0, Collection<? extends bsr> arg1, int arg2, cuq arg3)
setEntityItem(CommandSourceStack arg0, Collection<? extends Entity> arg1, int arg2, ItemStack arg3)
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)
m_180331_(C_2969_ p_180332_, Collection<? extends C_507_> p_180333_, int p_180334_, C_1391_ p_180335_)
private static int
a(et arg0, jd arg1, int arg2, Collection<? extends bsr> arg3, int arg4)
blockToEntities(CommandSourceStack arg0, BlockPos arg1, int arg2, Collection<? extends Entity> arg3, int arg4)
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)
m_180314_(C_2969_ p_180315_, C_4675_ p_180316_, int p_180317_, Collection<? extends C_507_> p_180318_, int p_180319_)
private static int
a(et arg0, jd arg1, int arg2, Collection<? extends bsr> arg3, int arg4, jm<etf> arg5)
blockToEntities(CommandSourceStack arg0, BlockPos arg1, int arg2, Collection<? extends Entity> arg3, int arg4, Holder<LootItemFunction> arg5)
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)
m_180320_(C_2969_ p_180321_, C_4675_ p_180322_, int p_180323_, Collection<? extends C_507_> p_180324_, int p_180325_, C_203228_<C_2928_> p_329510_)
private static int
a(et arg0, jd arg1, int arg2, jd arg3, int arg4)
blockToBlock(CommandSourceStack arg0, BlockPos arg1, int arg2, BlockPos arg3, int arg4)
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)
m_180301_(C_2969_ p_180302_, C_4675_ p_180303_, int p_180304_, C_4675_ p_180305_, int p_180306_)
private static int
a(et arg0, jd arg1, int arg2, jd arg3, int arg4, jm<etf> arg5)
blockToBlock(CommandSourceStack arg0, BlockPos arg1, int arg2, BlockPos arg3, int arg4, Holder<LootItemFunction> arg5)
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)
m_180307_(C_2969_ p_180308_, C_4675_ p_180309_, int p_180310_, C_4675_ p_180311_, int p_180312_, C_203228_<C_2928_> p_330732_)
private static int
a(et arg0, bsr arg1, int arg2, jd arg3, int arg4)
entityToBlock(CommandSourceStack arg0, Entity arg1, int arg2, BlockPos arg3, int arg4)
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)
m_180257_(C_2969_ p_180258_, C_507_ p_180259_, int p_180260_, C_4675_ p_180261_, int p_180262_)
private static int
a(et arg0, bsr arg1, int arg2, jd arg3, int arg4, jm<etf> arg5)
entityToBlock(CommandSourceStack arg0, Entity arg1, int arg2, BlockPos arg3, int arg4, Holder<LootItemFunction> arg5)
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)
m_180263_(C_2969_ p_180264_, C_507_ p_180265_, int p_180266_, C_4675_ p_180267_, int p_180268_, C_203228_<C_2928_> p_327828_)
private static int
a(et arg0, bsr arg1, int arg2, Collection<? extends bsr> arg3, int arg4)
entityToEntities(CommandSourceStack arg0, Entity arg1, int arg2, Collection<? extends Entity> arg3, int arg4)
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)
m_180270_(C_2969_ p_180271_, C_507_ p_180272_, int p_180273_, Collection<? extends C_507_> p_180274_, int p_180275_)
private static int
a(et arg0, bsr arg1, int arg2, Collection<? extends bsr> arg3, int arg4, jm<etf> arg5)
entityToEntities(CommandSourceStack arg0, Entity arg1, int arg2, Collection<? extends Entity> arg3, int arg4, Holder<LootItemFunction> arg5)
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)
m_180276_(C_2969_ p_180277_, C_507_ p_180278_, int p_180279_, Collection<? extends C_507_> p_180280_, int p_180281_, C_203228_<C_2928_> p_333656_)
private static ItemStack
a(et arg0, jm<etf> arg1, cuq arg2)
applyModifier(CommandSourceStack arg0, Holder<LootItemFunction> arg1, ItemStack arg2)
method_32715(class_2168 arg0, class_6880<class_117> arg1, class_1799 arg2)
getStackWithModifier(ServerCommandSource source, RegistryEntry<LootFunction> lootFunction, ItemStack stack)
m_180283_(C_2969_ p_180284_, C_203228_<C_2928_> p_334601_, C_1391_ p_180286_)
private static ItemStack
a(bsr arg0, int arg1)
getEntityItem(Entity arg0, int arg1)
method_32706(class_1297 arg0, int arg1)
getStackInSlot(Entity entity, int slotId)
m_180245_(C_507_ p_180246_, int p_180247_)
private static ItemStack
a(et arg0, jd arg1, int arg2)
getBlockItem(CommandSourceStack arg0, BlockPos arg1, int arg2)
method_32716(class_2168 arg0, class_2338 arg1, int arg2)
getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId)
m_180287_(C_2969_ p_180288_, C_4675_ p_180289_, int p_180290_)