Package vazkii.botania.api.brew

Examples of vazkii.botania.api.brew.IBrewContainer


  }

  public ItemStack getOutput(ItemStack stack) {
    if(stack == null || !(stack.getItem() instanceof IBrewContainer))
      return new ItemStack(Items.glass_bottle); // Fallback...
    IBrewContainer container = (IBrewContainer) stack.getItem();
   
    return container.getItemForBrew(brew, stack);
  }
View Full Code Here


  public int getManaCost() {
    ItemStack stack = getStackInSlot(0);
    if(recipe == null || stack == null || !(stack.getItem() instanceof IBrewContainer))
      return 0;
    IBrewContainer container = (IBrewContainer) stack.getItem();
    return container.getManaCost(recipe.getBrew(), stack);
  }
View Full Code Here

TOP

Related Classes of vazkii.botania.api.brew.IBrewContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.