Examples of ICraftingPatternItem


Examples of appeng.api.implementations.ICraftingPatternItem

    if ( is == null )
      return;

    if ( is.getItem() instanceof ICraftingPatternItem )
    {
      ICraftingPatternItem cpi = (ICraftingPatternItem) is.getItem();
      ICraftingPatternDetails details = cpi.getPatternForItem( is, iHost.getTileEntity().getWorldObj() );

      if ( details != null )
      {
        if ( craftingList == null )
          craftingList = new LinkedList<ICraftingPatternDetails>();
View Full Code Here

Examples of appeng.api.implementations.ICraftingPatternItem

    {
      NBTTagCompound item = list.getCompoundTagAt( x );
      IAEItemStack pattern = AEItemStack.loadItemStackFromNBT( item );
      if ( pattern != null && pattern.getItem() instanceof ICraftingPatternItem )
      {
        ICraftingPatternItem cpi = (ICraftingPatternItem) pattern.getItem();
        ICraftingPatternDetails details = cpi.getPatternForItem( pattern.getItemStack(), getWorld() );
        if ( details != null )
        {
          TaskProgress tp = new TaskProgress();
          tp.value = item.getLong( "craftingProgress" );
          tasks.put( details, tp );
View Full Code Here

Examples of appeng.api.implementations.ICraftingPatternItem

    if ( inv == pattern && slot == 1 )
    {
      ItemStack is = pattern.getStackInSlot( 1 );
      if ( is != null && is.getItem() instanceof ICraftingPatternItem )
      {
        ICraftingPatternItem pattern = (ICraftingPatternItem) is.getItem();
        ICraftingPatternDetails details = pattern.getPatternForItem( is, this.getHost().getTile().getWorldObj() );
        if ( details != null )
        {
          setCraftingRecipe( details.isCraftable() );

          for (int x = 0; x < crafting.getSizeInventory() && x < details.getInputs().length; x++)
View Full Code Here

Examples of appeng.api.implementations.ICraftingPatternItem

    switch (which)
    {
    case ENCODED_CRAFTING_PATTERN:
      if ( i.getItem() instanceof ICraftingPatternItem )
      {
        ICraftingPatternItem b = (ICraftingPatternItem) i.getItem();
        ICraftingPatternDetails de = b.getPatternForItem( i, p.player.worldObj );
        if ( de != null )
          return de.isCraftable();
      }
      return false;
    case VALID_ENCODED_PATTERN_W_OUTPUT:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.