Interface ICraftingRequester

All Superinterfaces:
IActionHost, IGridNodeService

public interface ICraftingRequester extends IActionHost, IGridNodeService
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.collect.ImmutableSet<ICraftingLink>
    called when the host is added to the grid, and should return all crafting links it poses so they can be connected with the cpu that hosts the job.
    long
    insertCraftedItems(ICraftingLink link, AEKey what, long amount, Actionable mode)
    items are injected into the requester as they are completed.
    void
    called when the job changes from in progress, to either complete, or canceled.

    Methods inherited from interface appeng.api.networking.security.IActionHost

    getActionableNode
  • Method Details

    • getRequestedJobs

      com.google.common.collect.ImmutableSet<ICraftingLink> getRequestedJobs()
      called when the host is added to the grid, and should return all crafting links it poses so they can be connected with the cpu that hosts the job.
      Returns:
      set of jobs, or an empty list.
    • insertCraftedItems

      long insertCraftedItems(ICraftingLink link, AEKey what, long amount, Actionable mode)
      items are injected into the requester as they are completed.
      Returns:
      the number of items inserted.
    • jobStateChange

      void jobStateChange(ICraftingLink link)
      called when the job changes from in progress, to either complete, or canceled.

      after this call the crafting link is "dead" and should be discarded.