mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-18 03:45:09 +01:00
Official Polymer compatibility
- Based on my PolymerRocks compatibility patch, featuring many improvements over it - Less hardcoded object instances, allowing for easier addition of new variations
This commit is contained in:
@@ -21,4 +21,10 @@ public enum RockVariation implements StringIdentifiable {
|
||||
public String asString() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
private static final RockVariation[] vals = values();
|
||||
|
||||
public RockVariation next() {
|
||||
return vals[(this.ordinal() + 1) % vals.length];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user