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; } }