2014-06-22 20:04:39 +02:00
|
|
|
package com.pahimar.ee3.init;
|
|
|
|
|
2016-05-23 23:47:31 +02:00
|
|
|
import com.pahimar.ee3.api.blacklist.BlacklistRegistryProxy;
|
2015-02-08 05:12:25 +01:00
|
|
|
import com.pahimar.ee3.exchange.OreStack;
|
2015-03-19 02:52:53 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2014-07-25 03:05:04 +02:00
|
|
|
import net.minecraftforge.oredict.OreDictionary;
|
|
|
|
|
2016-05-18 19:53:13 +02:00
|
|
|
public class Abilities {
|
|
|
|
public static void init() {
|
|
|
|
for (String oreName : OreDictionary.getOreNames()) {
|
|
|
|
if (oreName.startsWith("ore")) {
|
2023-01-03 17:47:36 +01:00
|
|
|
OreDictionary.getOres(oreName).forEach(
|
|
|
|
BlacklistRegistryProxy::setAsNotLearnable
|
|
|
|
);
|
2016-05-23 23:47:31 +02:00
|
|
|
BlacklistRegistryProxy.setAsNotLearnable(new OreStack(oreName));
|
2014-07-25 03:05:04 +02:00
|
|
|
}
|
|
|
|
}
|
2015-11-25 22:00:25 +01:00
|
|
|
|
2016-05-23 23:47:31 +02:00
|
|
|
BlacklistRegistryProxy.setAsNotLearnable(new ItemStack(Blocks.coal_ore));
|
|
|
|
BlacklistRegistryProxy.setAsNotLearnable(ModItems.shardMinium);
|
2023-01-03 17:47:36 +01:00
|
|
|
BlacklistRegistryProxy.setAsNotLearnable(
|
|
|
|
new ItemStack(ModItems.alchemicalDust, 1, 1)
|
|
|
|
);
|
|
|
|
BlacklistRegistryProxy.setAsNotLearnable(
|
|
|
|
new ItemStack(ModItems.alchemicalDust, 1, 2)
|
|
|
|
);
|
2014-06-22 20:04:39 +02:00
|
|
|
}
|
2015-02-03 05:12:08 +01:00
|
|
|
}
|