Package appeng.me

Examples of appeng.me.GridStorageSearch


   * @param storageID ID of grid storage
   * @return corresponding grid storage
   */
  public GridStorage getGridStorage(long storageID)
  {
    GridStorageSearch gss = new GridStorageSearch( storageID );
    WeakReference<GridStorageSearch> result = loadedStorage.get( gss );

    if ( result == null || result.get() == null )
    {
      String Data = get( "gridstorage", "" + storageID, "" ).getString();
View Full Code Here


   * create a new storage
   */
  public GridStorage getNewGridStorage()
  {
    long storageID = nextGridStorage();
    GridStorageSearch gss = new GridStorageSearch( storageID );
    GridStorage newStorage = new GridStorage( storageID, gss );
    gss.gridStorage = new WeakReference<GridStorage>( newStorage );
    loadedStorage.put( gss, new WeakReference<GridStorageSearch>( gss ) );
    return newStorage;
  }
View Full Code Here

TOP

Related Classes of appeng.me.GridStorageSearch

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.