mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-27 11:37:36 +01:00
parent
3f5736f555
commit
aad36c100f
@ -321,6 +321,16 @@ public class IslandsManager {
|
||||
return Optional.ofNullable(islandCache.getIslandAt(location));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an <strong>unmodifiable collection</strong> of all the islands (even those who may be unowned).
|
||||
* @return unmodifiable collection containing every island.
|
||||
* @since 1.1
|
||||
*/
|
||||
@NonNull
|
||||
public Collection<Island> getIslands() {
|
||||
return islandCache.getIslands();
|
||||
}
|
||||
|
||||
/**
|
||||
* Used for testing only to inject the islandCache mock object
|
||||
* @param islandCache - island cache
|
||||
@ -864,7 +874,6 @@ public class IslandsManager {
|
||||
*/
|
||||
public void save(Island island) {
|
||||
handler.saveObject(island);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user