}
for (int toSlot :toSlots) {
EntityRef toItem = getItemAt(to, toSlot);
if (!toItem.exists()) {
BeforeItemPutInInventory putTo = new BeforeItemPutInInventory(instigator, fromItem, toSlot);
to.send(putTo);
boolean allowed = !putTo.isConsumed();
if (allowed) {
putItemIntoSlot(to, fromItem, toSlot);
putItemIntoSlot(from, EntityRef.NULL, slotFrom);
return true;
}