mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-16 02:55:08 +01:00
- Based on my PolymerRocks compatibility patch, featuring many improvements over it - Less hardcoded object instances, allowing for easier addition of new variations
31 lines
623 B
Java
Executable File
31 lines
623 B
Java
Executable File
package eu.midnightdust.motschen.rocks.blockstates;
|
|
|
|
import net.minecraft.util.StringIdentifiable;
|
|
|
|
public enum RockVariation implements StringIdentifiable {
|
|
TINY("tiny"),
|
|
SMALL("small"),
|
|
MEDIUM("medium"),
|
|
LARGE("large");
|
|
|
|
private final String name;
|
|
|
|
RockVariation(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.name;
|
|
}
|
|
|
|
public String asString() {
|
|
return this.name;
|
|
}
|
|
|
|
private static final RockVariation[] vals = values();
|
|
|
|
public RockVariation next() {
|
|
return vals[(this.ordinal() + 1) % vals.length];
|
|
}
|
|
}
|