Package net.mcft.copy.betterstorage.api.crafting

Examples of net.mcft.copy.betterstorage.api.crafting.CraftingSourceTileEntity


 
  /** Called when an item is removed from the output
   *  slot while it doesn't store any real items. */
  public void craft(EntityPlayer player) {
    boolean hasRequirements = hasItemRequirements();
    ICraftingSource source = new CraftingSourceTileEntity(entity, player);
    currentCrafting.craft(source);
    IRecipeInput[] requiredInput = currentCrafting.getCraftRequirements();
    for (int i = 0; i < crafting.length; i++)
      if (crafting[i] != null)
        crafting[i] = craftSlot(crafting[i], requiredInput[i], player, false);
View Full Code Here


  }
 
  /** Returns if items can be taken out of the output slots. */
  public boolean canTake(EntityPlayer player) {
    return (outputIsReal || ((currentCrafting != null) &&
                             (currentCrafting.canCraft(new CraftingSourceTileEntity(entity, player))) &&
                             (progress >= currentCrafting.getCraftingTime()) && hasRequiredExperience(player) &&
                              ((player != null) || ((progress >= GlobalConfig.stationAutocraftDelaySetting.getValue()) &&
                                                    hasItemRequirements()))));
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.api.crafting.CraftingSourceTileEntity

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.