public class TestRecipe implements Recipe { //[...] public static class Type implements RecipeType { private Type() {} public static final Type INSTANCE = new Type(); public static final String ID = "test_recipe"; } @Override pubilc RecipeType getType() { return Type.INSTANCE; } }