@Override
 public void onItemCrafted() {
   inventory.setInventorySlotContents(
       2,
       RecipeRegistry.CalculatorRecipes.instance()
           .getCraftingResult(inventory.getStackInSlot(0), inventory.getStackInSlot(1)),
       isRemote);
   inventory.setInventorySlotContents(
       5,
       RecipeRegistry.ScientificRecipes.instance()
           .getCraftingResult(inventory.getStackInSlot(3), inventory.getStackInSlot(4)),
       isRemote);
   inventory.setInventorySlotContents(
       9,
       RecipeRegistry.AtomicRecipes.instance()
           .getCraftingResult(
               inventory.getStackInSlot(6),
               inventory.getStackInSlot(7),
               inventory.getStackInSlot(8)),
       isRemote);
 }
  @Override
  public boolean canInteractWith(EntityPlayer player) {

    return inventory.isUseableByPlayer(player);
  }