Exemplo n.º 1
0
 /**
  * Instructs the WorldLoader to asynchronously save a region.
  *
  * <p>The request will be ignored if the region does not grant its {@link Region#getSavePermit()
  * save permit}.
  *
  * @param region The region to save.
  * @param cacheHandle The handle to this region's cache entry. {@code null} is allowed.
  */
 @UserThread("Any")
 public void saveRegion(Region region, CachedRegion cacheHandle) {
   loader.saveRegion(this, region, cacheHandle);
 }
Exemplo n.º 2
0
 /**
  * Instructs the WorldLoader to asynchronously load a region. This method does nothing if {@link
  * Region#getLoadPermit() region.getLoadPermit()} returns {@code false}.
  *
  * @param region The region to load.
  * @param generate Whether or not the region should also be generated, if it is not already.
  * @throws NullPointerException if {@code region} is {@code null}.
  */
 @UserThread("Any")
 public void loadRegion(Region region, boolean generate) {
   loader.loadRegion(this, region, generate);
 }