Files
EnderIO/common/appeng/api/IGridCacheRegistry.java
T
2014-02-13 14:01:40 +08:00

25 lines
568 B
Java

package appeng.api;
import appeng.api.me.util.IGridCache;
/**
* A registry of grid caches to extend grid functionality.
*/
public interface IGridCacheRegistry {
/**
* Register a new grid cache for use during operation, must be called during the loading phase.
* @param cl
* @return cache id ( can be used later to ask the grid for you cache. )
*/
int registerGridCache( Class<? extends IGridCache> cl );
/**
* requests a new instance of a grid cache for use, used internally
* @param id
* @return
*/
IGridCache[] createCacheInstance();
}