Package appeng.api.me.util

Examples of appeng.api.me.util.ICraftingPattern


    for (ItemStack currentPatternStack : patternInventory.slots)
    {
      if (currentPatternStack != null)
      {
        ICraftingPattern currentPattern = Util.getAssemblerPattern(currentPatternStack);

        if (currentPattern != null)
        {
          convertToRequirementsToFluid(currentPattern.getRequirements());
          patternHandlers.add(currentPattern);
          craftingTracker.addCraftingOption(this, currentPattern);
        }
      }
    }
View Full Code Here


  }

  public void requestFluid(FluidStack toOrder)
  {
    ItemStack order = new ItemStack(ItemEnum.FLUIDDISPLAY.getItemInstance(), 1, toOrder.fluidID);
    ICraftingPattern pattern = grid.getPatternFor(order);
    System.out.println(pattern == null);
    try
    {
      grid.craftingRequest(order);/*
                     * / ITileCraftingProvider provider = pattern.getProviders().get(0); if (provider instanceof TileEntityInterfaceFluid) ((TileEntityInterfaceFluid) provider).orderFluid(toOrder);//
View Full Code Here

  @Override
  public boolean isItemValidForSlot(int i, ItemStack itemstack)
  {
    if (gridTE != null)
    {
      ICraftingPattern currentPattern = Util.getAssemblerPattern(itemstack);
      if (currentPattern == null || currentPattern.getRequirements() == null)
        return false;
      if (FluidContainerRegistry.isEmptyContainer(currentPattern.getOutput()))
        return false;

      for (ItemStack entry : currentPattern.getRequirements())
      {
        if (entry != null && entry.getItem() instanceof IFluidContainerItem || FluidContainerRegistry.isFilledContainer(entry))
        {
          return doesRecipeExist((ICraftingPatternMAC) currentPattern);
        }
View Full Code Here

TOP

Related Classes of appeng.api.me.util.ICraftingPattern

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.