9
0
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:
SamB440
2021-06-12 17:13:44 +01:00
parent 3bb6db4636
commit 0ffa436923
3 changed files with 14 additions and 10 deletions

View File

@@ -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);
}