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

29 lines
1 KiB
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")) {
2023-01-03 17:47:36 +01:00
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);
2023-01-03 17:47:36 +01:00
BlacklistRegistryProxy.setAsNotLearnable(
new ItemStack(ModItems.alchemicalDust, 1, 1)
);
BlacklistRegistryProxy.setAsNotLearnable(
new ItemStack(ModItems.alchemicalDust, 1, 2)
);
}
}