Files
EnderIO/src/main/java/crazypants/enderio/material/PowderIngot.java
T
Dwargkiller 334479f069 Flour/Bread
Adds a flour item to avoid mod dependencies, as well as recipes to
increase bread yield from wheat (Wheat -> Sag Mill - > Flour -> Alloy
Smelter -> Bread). Final yield is 2 bread per wheat, compared to vanilla
1/3. It's comparable to Natura + Thermal Expansion.
2015-04-05 23:50:05 +02:00

49 lines
1.8 KiB
Java

package crazypants.enderio.material;
import static crazypants.util.OreDictionaryHelper.DUST_ENDERPEARL;
import static crazypants.util.OreDictionaryHelper.INGOT_COPPER;
import static crazypants.util.OreDictionaryHelper.INGOT_ENDERIUM;
import static crazypants.util.OreDictionaryHelper.INGOT_TIN;
import static crazypants.util.OreDictionaryHelper.isRegistered;
public enum PowderIngot {
POWDER_COAL("powderCoal", null),
POWDER_IRON("powderIron", null),
POWDER_GOLD("powderGold", null),
POWDER_COPPER("powderCopper", INGOT_COPPER),
POWDER_TIN("powderTin", INGOT_TIN),
POWDER_ENDER("powderEnder", DUST_ENDERPEARL),
INGOT_ENDERIUM_BASE("ingotEnderiumBase", INGOT_ENDERIUM),
POWDER_OBSIDIAN("powderObsidian", null),
FLOUR("dustWheat", null);
// POWDER_LEAD("powderLead", "Lead Powder", "powderLead"),
// POWDER_SILVER("powderSilver", "Silver Powder", "powderSilver"),
// POWDER_BRONZE("powderBronze", "Bronze Powder", "powderBronze"),
// INGOT_COPPER("ingotCopper", "Copper Ingot", "ingotCopper");
// INGOT_TIN("ingotTin", "Tin Ingot", "ingotTin"),
// INGOT_LEAD("ingotLead", "Lead Ingot", "ingotLead"),
// INGOT_SILVER("ingotSilver", "Silver Ingot", "ingotSilver"),
// INGOT_BRONZE("ingotBronze", "Bronze Ingot", "ingotBronze"),
// INGOT_ELECTRUM("ingotElectrum", "Electrum Ingot", "ingotElectrum");
public final String unlocalisedName;
public final String iconKey;
public final String oreDictDependancy;
private PowderIngot(String unlocalisedName, String oreDictDependancy) {
this.unlocalisedName = "enderio." + unlocalisedName;
iconKey = "enderio:" + unlocalisedName;
this.oreDictDependancy = oreDictDependancy;
}
public boolean isDependancyMet() {
if(oreDictDependancy == null) {
return true;
}
return isRegistered(oreDictDependancy);
}
}