Package net.minecraft.server.command
Class ItemCommand
java.lang.Object
net.minecraft.server.command.ItemCommand
public class ItemCommand extends Object
-
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 -
NOT_A_CONTAINER_SOURCE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NOT_A_CONTAINER_SOURCE_EXCEPTION -
NO_SUCH_SLOT_TARGET_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_SUCH_SLOT_TARGET_EXCEPTION -
NO_SUCH_SLOT_SOURCE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_SUCH_SLOT_SOURCE_EXCEPTION -
NO_CHANGES_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_CHANGES_EXCEPTION -
KNOWN_ITEM_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType KNOWN_ITEM_EXCEPTION -
MODIFIER_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> MODIFIER_SUGGESTION_PROVIDER
-
-
Constructor Details
-
ItemCommand
public ItemCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
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
-
executeEntityModify
private static int executeEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier) -
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
-
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
-
executeEntityReplace
private static int executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) -
executeEntityCopyBlock
private static int executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) -
executeEntityCopyBlock
private static int executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) -
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
-
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
-
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
-
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
-
executeEntityCopyEntity
private static int executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) -
executeEntityCopyEntity
private static int executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) -
method_32715
private static ItemStack method_32715(ServerCommandSource serverCommandSource, LootFunction lootFunction, ItemStack itemStack) -
method_32706
private static ItemStack method_32706(Entity entity, int int2) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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
-