Files
Botania/src/main/java/vazkii/botania/api/mana/ICompositableLens.java
T
yrsegal 7268788358 make ItemLens combination checking more generic
this will allow ILens instances that aren’t ItemLens to combine with
other ILens instances
2015-11-23 18:09:55 -05:00

33 lines
790 B
Java

/**
* 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);
}