mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
31 lines
1.0 KiB
Java
31 lines
1.0 KiB
Java
/**
|
|
* This class was created by <Vazkii>. 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 @ [Apr 22, 2015, 5:57:59 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.api.recipe;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import vazkii.botania.api.BotaniaAPI;
|
|
|
|
public class RecipeMiniFlower extends RecipeManaInfusion {
|
|
|
|
public RecipeMiniFlower(String flower, String mini, int mana) {
|
|
super(BotaniaAPI.internalHandler.getSubTileAsStack(flower), BotaniaAPI.internalHandler.getSubTileAsStack(mini), mana);
|
|
setAlchemy(true);
|
|
}
|
|
|
|
@Override
|
|
public boolean matches(ItemStack stack) {
|
|
String key = BotaniaAPI.internalHandler.getStackSubTileKey(stack);
|
|
String input = this.getInput() instanceof String ? (String) this.getInput() : BotaniaAPI.internalHandler.getStackSubTileKey((ItemStack) this.getInput());
|
|
return key != null && key.equals(input);
|
|
}
|
|
|
|
}
|