mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-28 19:29:16 +00:00
Fix deprecation warnings
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package net.islandearth.rpgregions.managers.data;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import net.islandearth.rpgregions.managers.data.region.ConfiguredRegion;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
@@ -14,12 +14,9 @@ public interface IRPGRegionsCache {
|
||||
|
||||
void removeConfiguredRegion(String id);
|
||||
|
||||
/**
|
||||
* @deprecated Subject to removal, as direct access should not be used.
|
||||
* @return {@link Map} of region names and the {@link ConfiguredRegion} pair.
|
||||
*/
|
||||
@Deprecated
|
||||
Map<String, ConfiguredRegion> getConfiguredRegions();
|
||||
ImmutableMap<String, ConfiguredRegion> getConfiguredRegions();
|
||||
|
||||
void clear();
|
||||
|
||||
CompletableFuture<Boolean> saveAll(boolean async);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user