equivalent-exchange-3/src/main/java/com/pahimar/ee3/init/Abilities.java
Pahimar 1fbc290025 Deprecating Verdant and Azure Dust
Renaming "Tome of Alchemical Knowledge" to "Alchenomicon"
2015-11-25 16:00:37 -05:00

31 lines
1.1 KiB
Java

package com.pahimar.ee3.init;
import com.pahimar.ee3.api.knowledge.AbilityRegistryProxy;
import com.pahimar.ee3.exchange.CachedOreDictionary;
import com.pahimar.ee3.exchange.OreStack;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
public class Abilities
{
public static void initNotLearnables()
{
for (String oreName : OreDictionary.getOreNames())
{
if (oreName.startsWith("ore"))
{
for (ItemStack itemStack : CachedOreDictionary.getInstance().getItemStacksForOreName(oreName))
{
AbilityRegistryProxy.setAsNotLearnable(itemStack);
}
AbilityRegistryProxy.setAsNotLearnable(new OreStack(oreName));
}
}
AbilityRegistryProxy.setAsNotLearnable(new ItemStack(Blocks.coal_ore));
AbilityRegistryProxy.setAsNotLearnable(ModItems.shardMinium);
AbilityRegistryProxy.setAsNotLearnable(new ItemStack(ModItems.alchemicalDust, 1, 1));
AbilityRegistryProxy.setAsNotLearnable(new ItemStack(ModItems.alchemicalDust, 1, 2));
}
}