2019-05-14 18:30:44 +02:00
|
|
|
package anvil.infinity.snap;
|
|
|
|
|
|
|
|
import anvil.infinity.config.ConfigHandler;
|
|
|
|
|
|
|
|
public enum SnapResult {
|
|
|
|
|
|
|
|
KILLHALF,
|
|
|
|
DESTROYSTONES,
|
|
|
|
BRINGBACK,
|
|
|
|
RECREATE,
|
|
|
|
CREATIVE;
|
|
|
|
|
|
|
|
public SnapResult next() {
|
|
|
|
switch(this) {
|
|
|
|
case KILLHALF: return DESTROYSTONES;
|
|
|
|
case DESTROYSTONES: return BRINGBACK;
|
|
|
|
case BRINGBACK: return RECREATE;
|
|
|
|
case RECREATE: if (ConfigHandler.snapCreative) {return CREATIVE;} else {return KILLHALF;}
|
|
|
|
case CREATIVE: return KILLHALF;
|
|
|
|
}
|
|
|
|
return KILLHALF;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
switch (this) {
|
|
|
|
case KILLHALF: return "Kill half";
|
|
|
|
case DESTROYSTONES: return "Destroy the Stones";
|
2019-05-18 20:39:22 +02:00
|
|
|
case BRINGBACK: return "Bring back the dusted (WIP)";
|
|
|
|
case RECREATE: return "Recreate the Universe (WIP)";
|
2019-05-14 18:30:44 +02:00
|
|
|
case CREATIVE: return "Change to Creative";
|
|
|
|
}
|
|
|
|
return "Kill half";
|
|
|
|
}
|
|
|
|
}
|