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;
}
Aggregations