Examples of IIngredient


Examples of appeng.api.recipes.IIngredient

      {
        for (int y = 0; y < 3; y++)
        {
          if ( items.length > (y * 3 + x) )
          {
            IIngredient ing = (IIngredient) items[(y * 3 + x)];

            try
            {
              ItemStack[] is = ing.getItemStackSet();
              PositionedStack stack = new PositionedStack( useSingleItems ? Platform.findPreferred( is ) : ing.getItemStackSet(), 25 + x * 18,
                  6 + y * 18, false );
              stack.setMaxSize( 1 );
              this.ingredients.add( stack );
            }
            catch (RegistrationError ignored)
View Full Code Here

Examples of appeng.api.recipes.IIngredient

    o.append( h.getName( output ) ).append( "\n" );

    for (int y = 0; y < inputs.size(); y++)
    {
      IIngredient i = inputs.get( y );

      if ( i.isAir() )
      {
        o.append( "air" );
      }
      else
      {
View Full Code Here

Examples of appeng.api.recipes.IIngredient

  public boolean canCraft(ItemStack reqOutput) throws RegistrationError, MissingIngredientError
  {
    for (int y = 0; y < rows; y++)
      for (int x = 0; x < cols; x++)
      {
        IIngredient i = inputs.get( y ).get( x );

        if ( !i.isAir() )
        {
          for ( ItemStack r : i.getItemStackSet() )
          {
            if ( Platform.isSameItemPrecise( r, reqOutput) )
              return false;
          }
        }
View Full Code Here

Examples of appeng.api.recipes.IIngredient

    o += h.getName( output ) + "\n";

    for (int y = 0; y < rows; y++)
      for (int x = 0; x < cols; x++)
      {
        IIngredient i = inputs.get( y ).get( x );

        if ( i.isAir() )
          o += "air" + (x + 1 == cols ? "\n" : " ");
        else
          o += h.getName( i ) + (x + 1 == cols ? "\n" : " ");
      }
View Full Code Here

Examples of appeng.api.recipes.IIngredient

      {
        for (int y = 0; y < height; y++)
        {
          if ( items[(y * width + x)] != null )
          {
            IIngredient ing = (IIngredient) items[(y * width + x)];

            try
            {
              ItemStack[] is = ing.getItemStackSet();
              PositionedStack stack = new PositionedStack( useSingleItems ? Platform.findPreferred( is ) : is, 25 + x * 18, 6 + y * 18, false );
              stack.setMaxSize( 1 );
              this.ingredients.add( stack );
            }
            catch (RegistrationError ignored)
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.