equivalent-exchange-3/src/main/java/com/pahimar/ee3/init/Abilities.java

25 lines
978 B
Java
Raw Normal View History

package com.pahimar.ee3.init;
import com.pahimar.ee3.api.blacklist.BlacklistRegistryProxy;
import com.pahimar.ee3.exchange.OreStack;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
2014-07-25 03:05:04 +02:00
import net.minecraftforge.oredict.OreDictionary;
public class Abilities {
public static void init() {
for (String oreName : OreDictionary.getOreNames()) {
if (oreName.startsWith("ore")) {
OreDictionary.getOres(oreName).forEach(BlacklistRegistryProxy::setAsNotLearnable);
BlacklistRegistryProxy.setAsNotLearnable(new OreStack(oreName));
2014-07-25 03:05:04 +02:00
}
}
BlacklistRegistryProxy.setAsNotLearnable(new ItemStack(Blocks.coal_ore));
BlacklistRegistryProxy.setAsNotLearnable(ModItems.shardMinium);
BlacklistRegistryProxy.setAsNotLearnable(new ItemStack(ModItems.alchemicalDust, 1, 1));
BlacklistRegistryProxy.setAsNotLearnable(new ItemStack(ModItems.alchemicalDust, 1, 2));
}
}