use of com.lilithsthrone.game.inventory.item.AbstractItem in project liliths-throne-public by Innoxia.
the class EnchantingUtils method craftItem.
public static AbstractItem craftItem(AbstractCoreItem ingredient, List<ItemEffect> effects) {
AbstractItem craftedItem = null;
craftedItem = AbstractItemType.generateItem((AbstractItemType) ingredient.getEnchantmentItemType(effects));
List<ItemEffect> effectsToBeAdded = new ArrayList<>();
effectsToBeAdded.addAll(effects);
craftedItem.setItemEffects(effectsToBeAdded);
craftedItem.setName(getPotionName(ingredient, effectsToBeAdded));
craftedItem.setColour(ingredient.getEnchantmentEffect().getColour());
craftedItem.setSVGString(getSVGString(ingredient, effectsToBeAdded));
return craftedItem;
}
Aggregations