mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-23 21:39:51 +00:00
26 lines
362 B
Java
26 lines
362 B
Java
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;
|
|
}
|
|
}
|
|
}
|