Search in sources :

Example 6 with DryingRecipe

use of com.eerussianguy.firmalife.recipe.DryingRecipe in project firmalife by eerussianguy.

the class TELeafMat method recipeExists.

private boolean recipeExists() {
    ItemStack input = inventory.getStackInSlot(0);
    DryingRecipe recipe = null;
    if (!input.isEmpty() && !world.isRemote) {
        recipe = DryingRecipe.get(input);
    }
    return recipe != null;
}
Also used : DryingRecipe(com.eerussianguy.firmalife.recipe.DryingRecipe) ItemStack(net.minecraft.item.ItemStack)

Aggregations

DryingRecipe (com.eerussianguy.firmalife.recipe.DryingRecipe)6 ItemStack (net.minecraft.item.ItemStack)5 IAction (crafttweaker.IAction)2 ArrayList (java.util.ArrayList)2 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)2 InputHelper (com.blamejared.mtlib.helpers.InputHelper)1 RegistriesFL (com.eerussianguy.firmalife.init.RegistriesFL)1 TELeafMat (com.eerussianguy.firmalife.te.TELeafMat)1 CraftTweakerAPI (crafttweaker.CraftTweakerAPI)1 ZenRegister (crafttweaker.annotations.ZenRegister)1 IIngredient (crafttweaker.api.item.IIngredient)1 IItemStack (crafttweaker.api.item.IItemStack)1 Nonnull (javax.annotation.Nonnull)1 CTHelper (net.dries007.tfc.compat.crafttweaker.CTHelper)1 TileEntity (net.minecraft.tileentity.TileEntity)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 TextComponentTranslation (net.minecraft.util.text.TextComponentTranslation)1 IForgeRegistryModifiable (net.minecraftforge.registries.IForgeRegistryModifiable)1 ZenClass (stanhebben.zenscript.annotations.ZenClass)1