Minecraft wiki entry for replaceitem, associated text: /item — the Java Edition equivalent
/give — give items to players without specifying specific inventory slots or overwriting other items
/setfixedinvslot (outdated) — can replace a slot of a mob's inventory
/setfixedinvslot (outdated) — can replace items of a mob's inventory