mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Use interfaces rather than classes
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user