make ItemLens combination checking more generic

this will allow ILens instances that aren’t ItemLens to combine with
other ILens instances
This commit is contained in:
yrsegal committed 2015-11-23 18:09:55 -05:00
1 parent 653d042127
commit 7268788358
3 files changed
+59 -12

No files matched your search

@@ -0,0 +1,32 @@
/**
* This class was created by <WireSegal>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Nov 23, 2015, 10:30:34 AM (GMT)]
*/
package vazkii.botania.api.mana;
import net.minecraft.item.ItemStack;
/**
* Have an Item implement this to be counted as a lens that can be combined with an ItemLens.
*/
public interface ICompositableLens extends ILens {
/**
* Returns the properties of the itemstack, used to check if two lenses can combine.
*/
public int getProps(ItemStack stack);
/**
* Checks if the lens is combinable.
*/
public boolean isCombinable(ItemStack stack);
}