Package appeng.api.exceptions

Examples of appeng.api.exceptions.AppEngException


      }
    }

    if ( o == null )
    {
      throw new AppEngException( "ItemStack was used as a cell, but was not a cell!" );
    }

    CellType = null;
    i = o;

    Item type = i.getItem();
    if ( type instanceof IStorageCell )
    {
      CellType = (IStorageCell) i.getItem();
      MAX_ITEM_TYPES = CellType.getTotalTypes( i );
    }

    if ( CellType == null )
    {
      throw new AppEngException( "ItemStack was used as a cell, but was not a cell!" );
    }

    if ( !CellType.isStorageCell( i ) )
    {
      throw new AppEngException( "ItemStack was used as a cell, but was not a cell!" );
    }

    if ( MAX_ITEM_TYPES > 63 )
      MAX_ITEM_TYPES = 63;
    if ( MAX_ITEM_TYPES < 1 )
View Full Code Here


  public void whiteListTileEntity(Class<? extends TileEntity> c)
  {

    if ( c.getName().equals( TileEntity.class.getName() ) )
    {
      throw new RuntimeException( new AppEngException(
          "Someone tried to make all tiles movable, this is a clear violation of the purpose of the white list." ) );
    }

    test.add( c );
  }
View Full Code Here

TOP

Related Classes of appeng.api.exceptions.AppEngException

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.