mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
this will allow ILens instances that aren’t ItemLens to combine with other ILens instances
33 lines
790 B
Java
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);
|
|
|
|
}
|
|
|
|
|