mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-16 10:55:10 +01:00
- Based on my PolymerRocks compatibility patch, featuring many improvements over it - Less hardcoded object instances, allowing for easier addition of new variations
30 lines
619 B
Java
Executable File
30 lines
619 B
Java
Executable File
package eu.midnightdust.motschen.rocks.blockstates;
|
|
|
|
import net.minecraft.util.StringIdentifiable;
|
|
|
|
public enum SeashellVariation implements StringIdentifiable {
|
|
YELLOW("yellow"),
|
|
PINK("pink"),
|
|
WHITE("white");
|
|
|
|
private final String name;
|
|
|
|
SeashellVariation(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.name;
|
|
}
|
|
|
|
public String asString() {
|
|
return this.name;
|
|
}
|
|
|
|
private static final SeashellVariation[] vals = values();
|
|
|
|
public SeashellVariation next() {
|
|
return vals[(this.ordinal() + 1) % vals.length];
|
|
}
|
|
}
|