* @param item to set to
* @return True if the slot can be set to the item, False if not
*/
protected boolean canSet(Inventory inventory, int index, ItemStack item) {
final boolean canSet = inventory.canSet(index, item);
InventoryCanSetEvent event = owner.getEngine().getEventManager().callEvent(new InventoryCanSetEvent(inventory, new PlayerCause(getPlayer()), index, item, !canSet));
return !event.isCancelled();
}