}
static boolean moveItemToSlots(EntityRef instigator, EntityRef from, int fromSlot, EntityRef to, List<Integer> toSlots) {
EntityRef fromItem = InventoryUtils.getItemAt(from, fromSlot);
BeforeItemRemovedFromInventory removeFrom = new BeforeItemRemovedFromInventory(instigator, fromItem, fromSlot);
from.send(removeFrom);
if (removeFrom.isConsumed()) {
return false;
}
boolean movedToStack = moveToExistingStacksInSlots(from, fromSlot, to, toSlots);