Package appeng.api.networking
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 TypeMethodDescriptionvoid
Add a specificAEKey
to watch.void
Remove a specificAEKey
from the watcher.void
reset()
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
Add a specificAEKey
to watch. Supports multiple values, duplicate ones will not be added. -
remove
Remove a specificAEKey
from the watcher. -
reset
void reset()Removes all watched stacks and resets the watcher to a clean state.
-