int getReplaceSuccess(CommandSourceStack source, CommandResponseTracker<Target> tracker, @Nullable ItemStack knownItem) throws CommandSyntaxException;
17
18
int getModifySuccess(CommandSourceStack source, CommandResponseTracker<Target> tracker) throws CommandSyntaxException;
19
20
@FunctionalInterface
21
interface SetterFunction<Target> {
22
int apply(Target target, SlotCollection slots);
23
}
24
}
25
Decompiled Minecraft 26.3 source of ItemAccessor (net/minecraft/server/commands/item/ItemAccessor.java) with Mojang official mappings, stored verbatim on the site.