Use interfaces rather than classes

This commit is contained in:
Daniil Z committed 2021-03-01 01:29:29 +03:00
1 parent 080760188c
commit fd4b886631
9 files changed
+41 -37

No files matched your search

@@ -7,7 +7,7 @@ import me.william278.huskhomes2.teleport.points.TeleportationPoint;
import me.william278.huskhomes2.teleport.points.Warp;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
/**
* The HuskHomes API
@@ -55,7 +55,7 @@ public class HuskHomesAPI {
@return an ArrayList of Homes
@see Home
*/
public ArrayList<Home> getHomes(Player player) {
public List<Home> getHomes(Player player) {
return DataManager.getPlayerHomes(player.getName());
}
@@ -65,7 +65,7 @@ public class HuskHomesAPI {
@return an ArrayList of Homes
@see Home
*/
public ArrayList<Home> getHomes(String ownerUsername) {
public List<Home> getHomes(String ownerUsername) {
return DataManager.getPlayerHomes(ownerUsername);
}
@@ -84,7 +84,7 @@ public class HuskHomesAPI {
@return an ArrayList of Homes
@see Home
*/
public ArrayList<Home> getPublicHomes() {
public List<Home> getPublicHomes() {
return DataManager.getPublicHomes();
}
@@ -102,7 +102,7 @@ public class HuskHomesAPI {
@return an ArrayList of Warps
@see Warp
*/
public ArrayList<Warp> getWarps() {
public List<Warp> getWarps() {
return DataManager.getWarps();
}