mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Implement ItemDbProviders, pt 6
This commit is contained in:
parent
de2298cf0a
commit
dd9a0de98d
@ -59,6 +59,11 @@ public class FlatItemDbProvider extends ItemDbProvider {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<String> listNames() {
|
||||
return Collections.unmodifiableSet(primaryNames.keySet());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void rebuild(List<String> lines) {
|
||||
String json = String.join("\n", lines);
|
||||
|
@ -114,6 +114,11 @@ public class LegacyItemDbProvider extends ItemDbProvider {
|
||||
return retval;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<String> listNames() {
|
||||
return primaryNames.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsLegacyIds() {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user