Package appeng.api.networking.crafting

Examples of appeng.api.networking.crafting.ICraftingPatternDetails


  }

  @Override
  public void addInformation(ItemStack is, EntityPlayer p, List l, boolean more)
  {
    ICraftingPatternDetails details = getPatternForItem( is, p.worldObj );

    if ( details == null )
    {
      l.add( EnumChatFormatting.RED + GuiText.InvalidPattern.getLocal() );
      return;
    }

    boolean isCrafting = details.isCraftable();

    IAEItemStack[] in = details.getCondensedInputs();
    IAEItemStack[] out = details.getCondensedOutputs();

    String label = (isCrafting ? GuiText.Crafts.getLocal() : GuiText.Creates.getLocal()) + ": ";
    String and = " " + GuiText.And.getLocal() + " ";
    String with = GuiText.With.getLocal() + ": ";
View Full Code Here


    World w = CommonHelper.proxy.getWorld();
    if ( w == null )
      return null;

    ICraftingPatternDetails details = getPatternForItem( item, w );

    if ( details == null )
      return null;

    simpleCache.put( item, out = details.getCondensedOutputs()[0].getItemStack() );
    return out;
  }
View Full Code Here

TOP

Related Classes of appeng.api.networking.crafting.ICraftingPatternDetails

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.