Search in sources :

Example 1 with IPowerStorage

use of crazypants.enderio.base.power.IPowerStorage in project EnderIO by SleepyTrousers.

the class NetworkPowerManager method checkReceptors.

private void checkReceptors() {
    if (!receptorsDirty) {
        return;
    }
    receptors.clear();
    storageReceptors.clear();
    for (ReceptorEntry rec : network.getPowerReceptors()) {
        if (rec.powerInterface.getProvider() != null && rec.powerInterface.getProvider() instanceof IPowerStorage) {
            storageReceptors.add(rec);
        } else {
            receptors.add(rec);
        }
    }
    receptorIterator = receptors.listIterator();
    receptorsDirty = false;
}
Also used : IPowerStorage(crazypants.enderio.base.power.IPowerStorage) ReceptorEntry(crazypants.enderio.conduits.conduit.power.PowerConduitNetwork.ReceptorEntry)

Aggregations

IPowerStorage (crazypants.enderio.base.power.IPowerStorage)1 ReceptorEntry (crazypants.enderio.conduits.conduit.power.PowerConduitNetwork.ReceptorEntry)1