Examples of OreRegistration


Examples of appeng.recipes.handlers.OreRegistration

          List<List<IIngredient>> inputs = parseLines( pre );

          if ( inputs.size() == 1 && inputs.get( 0 ).size() > 0 && post.size() == 1 )
          {
            ICraftHandler ch = new OreRegistration( inputs.get( 0 ), post.get( 0 ) );
            addCrafting( ch );
          }
          else
            throw new RecipeError( "Group must have exactly 1 output, and 1 or more inputs in a single row." );
        }
        else
        {
          List<String> pre = tokens.subList( 0, split - 1 );
          List<String> post = tokens.subList( split, tokens.size() );

          List<List<IIngredient>> inputs = parseLines( pre );
          List<List<IIngredient>> outputs = parseLines( post );

          ICraftHandler ch = cr.getCraftHandlerFor( operation );

          if ( ch != null )
          {
            ch.setup( inputs, outputs );
            addCrafting( ch );
          }
          else
            throw new RecipeError( "Invalid crafting type: " + operation );
        }
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.