use of crafttweaker.api.enchantments.IEnchantment in project GregTech by GregTechCE.
the class SolidMaterial method ctAddEnchantmentForTools.
@ZenMethod("addToolEnchantment")
@Method(modid = GTValues.MODID_CT)
public void ctAddEnchantmentForTools(IEnchantment enchantment) {
Enchantment enchantmentType = (Enchantment) enchantment.getDefinition().getInternal();
toolEnchantments.add(new EnchantmentData(enchantmentType, enchantment.getLevel()));
}
Aggregations