Add a use for bauxite and continue the great refactor of 2017

This commit is contained in:
Prospector 2017-01-01 19:32:53 -08:00
parent 6a70424252
commit 007c6ca38a
4 changed files with 76 additions and 15 deletions

View file

@ -12,21 +12,20 @@ public abstract class RecipeMethods {
static ItemStack getMaterial(String name, int count, Type type) {
if (type == Type.DUST) {
return ItemDusts.getDustByName(name, count);
}
if (type == Type.SMALL_DUST) {
} else if (type == Type.SMALL_DUST) {
return ItemDustsSmall.getSmallDustByName(name, count);
}
if (type == Type.INGOT) {
} else if (type == Type.INGOT) {
return ItemIngots.getIngotByName(name, count);
}
if (type == Type.GEM) {
} else if (type == Type.GEM) {
return ItemGems.getGemByName(name, count);
}
if (type == Type.PLATE) {
} else if (type == Type.PLATE) {
return ItemPlates.getPlateByName(name, count);
}
if (type == Type.NUGGET) {
} else if (type == Type.NUGGET) {
return ItemNuggets.getNuggetByName(name, count);
} else if (type == Type.CELL) {
return ItemCells.getCellByName(name, count);
} else {
}
return ItemStack.EMPTY;
}
@ -53,6 +52,6 @@ public abstract class RecipeMethods {
}
enum Type {
DUST, SMALL_DUST, INGOT, NUGGET, PLATE, GEM
DUST, SMALL_DUST, INGOT, NUGGET, PLATE, GEM, CELL
}
}