diff --git a/MODSRC/vazkii/botania/api/mana/ILens.java b/MODSRC/vazkii/botania/api/mana/ILens.java index 7d6d839bb..28a80c034 100644 --- a/MODSRC/vazkii/botania/api/mana/ILens.java +++ b/MODSRC/vazkii/botania/api/mana/ILens.java @@ -49,5 +49,22 @@ public interface ILens { * do any particles. */ public boolean doParticles(IManaBurst burst, ItemStack stack); + + /** + * Can the source lens be combined with the composite lens? This is called + * for both the ILens instance of ItemStack.getItem() of sourceLens and compositeLens. + */ + public boolean canCombineLenses(ItemStack sourceLens, ItemStack compositeLens); + + /** + * Gets the composite lens in the stack passed in, return null for none. + */ + public ItemStack getCompositeLens(ItemStack stack); + + /** + * Sets the composite lens for the sourceLens as the compositeLens, returns + * the ItemStack with the combination. + */ + public ItemStack setCompositeLens(ItemStack sourceLens, ItemStack compositeLens); } diff --git a/MODSRC/vazkii/botania/common/item/ItemLens.java b/MODSRC/vazkii/botania/common/item/ItemLens.java index 5ac2e1906..684d48961 100644 --- a/MODSRC/vazkii/botania/common/item/ItemLens.java +++ b/MODSRC/vazkii/botania/common/item/ItemLens.java @@ -321,4 +321,20 @@ public class ItemLens extends ItemMod implements ILens { return true; } + + // TODO + @Override + public boolean canCombineLenses(ItemStack sourceLens, ItemStack compositeLens) { + return false; + } + + @Override + public ItemStack getCompositeLens(ItemStack stack) { + return null; + } + + @Override + public ItemStack setCompositeLens(ItemStack sourceLens, ItemStack compositeLens) { + return null; + } }