mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-21 21:42:28 +00:00
23 lines
603 B
Java
23 lines
603 B
Java
package api.hbm.energy;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Not mandatory to use, but making your cables IPowerNet-compliant will allow them to connect to NTM cables.
|
|
* Cables will still work without it as long as they implement IEnergyConductor (or even IEnergyConnector) + self-built network code
|
|
* @author hbm
|
|
*/
|
|
public interface IPowerNet {
|
|
|
|
public void join(IPowerNet network);
|
|
|
|
public IPowerNet subscribe(IEnergyConductor conductor);
|
|
public void unsubscribe(IEnergyConductor conductor);
|
|
|
|
public void destroy();
|
|
|
|
public boolean isValid();
|
|
|
|
public List<IEnergyConductor> getSubscribers();
|
|
}
|