Jottyfan f59ceb8883
Some checks are pending
build / build (21) (push) Waiting to run
added drill
2024-11-30 00:31:23 +01:00

37 lines
652 B
Java

package de.jottyfan.quickiemod.blockentity;
/**
*
* @author jotty
*
*/
public enum EnumDrillDirection {
DOWN(0), EAST(1), SOUTH(2), WEST(3), NORTH(4);
private final Integer value;
private EnumDrillDirection(Integer value) {
this.value = value;
}
@Override
public String toString() {
return String.format("%s: %d", EnumDrillDirection.lookupValue(value), value);
}
public static final String lookupValue(Integer value) {
return switch (value) {
case 0 -> "down";
case 1 -> "east";
case 2 -> "south";
case 3 -> "west";
case 4 -> "north";
default -> "not supported";
};
}
public Integer get() {
return value;
}
}