Applied-Energistics-2-tiler.../recipes/RecipeType.java
2013-12-27 16:59:59 -06:00

52 lines
724 B
Java

package appeng.recipes;
public enum RecipeType
{
// Shapeless
Shape0x0,
// Shaped 1x1
Shape1x1(1, 1),
// Shaped 2x2
Shape1x2(1, 2), Shape2x1(2, 1), Shape2x2(2, 2),
// Shaped 3x3
Shape2x3(2, 3), Shape3x2(3, 2), Shape3x3(3, 3);
boolean shapeless;
final int width;
final int height;
final int size;
private RecipeType(int w, int h) {
width = w;
height = h;
size = w * h;
shapeless = false;
}
private RecipeType() {
this( 3, 3 );
shapeless = true;
}
public boolean isShaped()
{
return shapeless;
}
public int getWidth()
{
return width;
}
public int getHeight()
{
return height;
}
public int getSize()
{
return size;
}
}