Interface ICraftingInterface

All Known Implementing Classes:
PartTypeInterfaceCrafting.State

public interface ICraftingInterface
A handler for invoking crafting recipes.
  • Method Details

    • getRecipes

      Collection<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipes()
      Returns:
      The collection of recipes that is exposed by this crafting interface.
    • canScheduleCraftingJobs

      boolean canScheduleCraftingJobs()
      Returns:
      If this crafting interface can currently accept crafting jobs.
    • scheduleCraftingJob

      void scheduleCraftingJob(CraftingJob craftingJob)
      Add the given crafting job to the list of crafting jobs.
      Parameters:
      craftingJob - The crafting job.
    • getCraftingJobsCount

      int getCraftingJobsCount()
      Returns:
      Get the number of scheduled and running crafting jobs in this interface.
    • getCraftingJobs

      Iterator<CraftingJob> getCraftingJobs()
      Returns:
      Get the scheduled and running crafting jobs in this interface.
    • getPendingCraftingJobOutputs

      List<Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>>>> getPendingCraftingJobOutputs(int craftingJobId)
      Get the pending outputs for the given crafting job, where the list indicates the different entries running in parallel.
      Parameters:
      craftingJobId - A crafting job id.
      Returns:
      A collection of all pending prototype-based ingredients.
    • getCraftingJobStatus

      CraftingJobStatus getCraftingJobStatus(ICraftingNetwork network, int channel, int craftingJobId)
      Get the status for the given crafting job.
      Parameters:
      network - The network.
      channel - The channel.
      craftingJobId - A crafting job id.
      Returns:
      The crafting status.
    • cancelCraftingJob

      void cancelCraftingJob(int channel, int craftingJobId)
      Cancel the given crafting job. Note: this should not be called directly unless you know what you are doing! Instead, you should call ICraftingNetwork.cancelCraftingJob(int, int).
      Parameters:
      channel - The channel.
      craftingJobId - A crafting job id.
    • getPosition

      org.cyclops.integrateddynamics.api.part.PrioritizedPartPos getPosition()
      Returns:
      The prioritized position of this interface.
    • createComparator

      static Comparator<ICraftingInterface> createComparator()