Interface IStorageWatcherNode

All Superinterfaces:
IGridNodeService

public interface IStorageWatcherNode extends IGridNodeService
A node that is notified of changes to the currently stored items in the network. Implementors should store the watcher passed to updateWatcher(appeng.api.networking.IStackWatcher) and use it to configure the watched stacks.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStackChange(AEKey what, long amount)
    Called when a watched item changes amounts.
    void
    provides the watcher for this host, for the current network, is called when the hot changes networks.
  • Method Details

    • updateWatcher

      void updateWatcher(IStackWatcher newWatcher)
      provides the watcher for this host, for the current network, is called when the hot changes networks. You do not need to clear your old watcher, its already been removed by the time this gets called.
      Parameters:
      newWatcher - stack watcher
    • onStackChange

      void onStackChange(AEKey what, long amount)
      Called when a watched item changes amounts.
      Parameters:
      what - What has changed
      amount - New amount in the network