mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Refactor Energy systems and make RF optional
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user