1fbc290025
Renaming "Tome of Alchemical Knowledge" to "Alchenomicon"
31 lines
1.1 KiB
Java
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));
|
|
}
|
|
} |