Refactor Energy systems and make RF optional

This commit is contained in:
mezz committed 2016-09-13 00:37:39 -07:00
1 parent 77cea8a645
commit 79c56311c2
36 files changed
+693 -748

No files matched your search

@@ -0,0 +1,25 @@
package forestry.energy;
public enum EnergyTransferMode {
EXTRACT, RECEIVE, BOTH, NONE;
public boolean canExtract() {
switch (this) {
case EXTRACT:
case BOTH:
return true;
default:
return false;
}
}
public boolean canReceive() {
switch (this) {
case RECEIVE:
case BOTH:
return true;
default:
return false;
}
}
}