Package appeng.api.networking.energy
Interface IEnergyWatcher
public interface IEnergyWatcher
DO NOT IMPLEMENT.
Will be injected when adding an
IEnergyWatcherNode
to a grid.-
Method Summary
-
Method Details
-
add
boolean add(double amount) Add a specific threshold to watch. Supports multiple values, duplicate ones will not be added.- Returns:
- true, if successfully added.
-
remove
boolean remove(double amount) Remove a specific threshold from the watcher.- Returns:
- true, if successfully removed.
-
reset
void reset()Removes all thresholds and resets the watcher to a clean state.
-