mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-09-25 07:21:05 +02:00
21 lines
422 B
Java
21 lines
422 B
Java
package de.ellpeck.prettypipes.items;
|
|
|
|
public enum ModuleTier {
|
|
|
|
LOW,
|
|
MEDIUM,
|
|
HIGH;
|
|
|
|
public final <T> T forTier(T low, T medium, T high) {
|
|
switch (this) {
|
|
case LOW:
|
|
return low;
|
|
case MEDIUM:
|
|
return medium;
|
|
case HIGH:
|
|
return high;
|
|
default:
|
|
throw new RuntimeException();
|
|
}
|
|
}
|
|
}
|