mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
SAG Mill no longer produces dusts for metals that are not available
Added config option to add Ore Dictionary entries and registered names to tooltips (default is off)
This commit is contained in:
1 parent
0e5f14984a
commit
80d31c632f
9 files changed
+213
-62
No files matched your search
@@ -1,14 +1,19 @@
|
||||
package crazypants.enderio.material;
|
||||
|
||||
import static crazypants.util.OreDictionaryHelper.DUST_ENDERPEARL;
|
||||
import static crazypants.util.OreDictionaryHelper.INGOT_COPPER;
|
||||
import static crazypants.util.OreDictionaryHelper.INGOT_TIN;
|
||||
import static crazypants.util.OreDictionaryHelper.isRegistered;
|
||||
|
||||
|
||||
public enum PowderIngot {
|
||||
|
||||
POWDER_COAL("powderCoal"),
|
||||
POWDER_IRON("powderIron"),
|
||||
POWDER_GOLD("powderGold"),
|
||||
POWDER_COPPER("powderCopper"),
|
||||
POWDER_TIN("powderTin"),
|
||||
POWDER_ENDER("powderEnder");
|
||||
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);
|
||||
// POWDER_LEAD("powderLead", "Lead Powder", "powderLead"),
|
||||
// POWDER_SILVER("powderSilver", "Silver Powder", "powderSilver"),
|
||||
// POWDER_BRONZE("powderBronze", "Bronze Powder", "powderBronze"),
|
||||
@@ -21,10 +26,19 @@ public enum PowderIngot {
|
||||
|
||||
public final String unlocalisedName;
|
||||
public final String iconKey;
|
||||
public final String oreDictDependancy;
|
||||
|
||||
private PowderIngot(String unlocalisedName) {
|
||||
private PowderIngot(String unlocalisedName, String oreDictDependancy) {
|
||||
this.unlocalisedName = "enderio." + unlocalisedName;
|
||||
this.iconKey = "enderio:" + unlocalisedName;
|
||||
iconKey = "enderio:" + unlocalisedName;
|
||||
this.oreDictDependancy = oreDictDependancy;
|
||||
}
|
||||
|
||||
public boolean isDependancyMet() {
|
||||
if(oreDictDependancy == null) {
|
||||
return true;
|
||||
}
|
||||
return isRegistered(oreDictDependancy);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user