Interface IStackWatcher


@NonExtendable public interface IStackWatcher
DO NOT IMPLEMENT. Will be injected when adding an IStorageWatcherNode or ICraftingWatcherNode to a grid.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    add(AEKey stack)
    Add a specific AEKey to watch.
    void
    remove(AEKey stack)
    Remove a specific AEKey from the watcher.
    void
    Removes all watched stacks and resets the watcher to a clean state.
    void
    setWatchAll(boolean watchAll)
    Request that ALL changes be broadcast to this watcher.
  • Method Details Link icon

    • setWatchAll Link icon

      void setWatchAll(boolean watchAll)
      Request that ALL changes be broadcast to this watcher.
      Parameters:
      watchAll - true to enable watching all stacks
    • add Link icon

      void add(AEKey stack)
      Add a specific AEKey to watch. Supports multiple values, duplicate ones will not be added.
    • remove Link icon

      void remove(AEKey stack)
      Remove a specific AEKey from the watcher.
    • reset Link icon

      void reset()
      Removes all watched stacks and resets the watcher to a clean state.