Interface IStackWatcher


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

    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

    • setWatchAll

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

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

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

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