Package appeng.api.exceptions

Examples of appeng.api.exceptions.RegistrationError


  }

  @Override
  public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
  {
    throw new RegistrationError( "Cannot pass group of items to a recipe which desires a single recipe item." );
  }
View Full Code Here


  @Override
  public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
  {
    if ( isAir )
      throw new RegistrationError( "Found blank item and expected a real item." );

    if ( nameSpace.equalsIgnoreCase( "oreDictionary" ) )
      throw new RegistrationError( "Recipe format expected a single item, but got a set of items." );

    Block blk = GameRegistry.findBlock( nameSpace, itemName );
    if ( blk == null )
      blk = GameRegistry.findBlock( nameSpace, "tile." + itemName );
View Full Code Here

  @Override
  public void register() throws RegistrationError, MissingIngredientError
  {
    if ( in.getItemStack().getItem() == null )
      throw new RegistrationError( in.toString() + ": Smelting Input is not a valid item." );

    if ( out.getItemStack().getItem() == null )
      throw new RegistrationError( out.toString() + ": Smelting Output is not a valid item." );

    GameRegistry.addSmelting( in.getItemStack(), out.getItemStack(), 0 );
  }
View Full Code Here

  }

  @Override
  public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
  {
    throw new RegistrationError( "Cannot pass group of items to a recipe which desires a single recipe item." );
  }
View Full Code Here

      GameRegistry.addRecipe( new ShapelessRecipe( outIS, args.toArray( new Object[args.size()] ) ) );
    }
    catch (Throwable e)
    {
      AELog.error( e );
      throw new RegistrationError( "Error while adding shapeless recipe." );
    }
  }
View Full Code Here

      GameRegistry.addRecipe( new ShapedRecipe( outIS, args.toArray( new Object[args.size()] ) ) );
    }
    catch (Throwable e)
    {
      AELog.error( e );
      throw new RegistrationError( "Error while adding shaped recipe." );
    }
  }
View Full Code Here

TOP

Related Classes of appeng.api.exceptions.RegistrationError

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.