From d218fbf1e0a2562fe37b848081461f86414d5b73 Mon Sep 17 00:00:00 2001 From: PurpleIsEverything Date: Wed, 19 Sep 2018 14:23:09 -0600 Subject: [PATCH 1/2] Modinfo: Add getType and getModList methods. --- .../com/velocitypowered/api/proxy/server/ServerPing.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java b/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java index 069a5f7e8..0c9feffb3 100644 --- a/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java +++ b/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java @@ -312,6 +312,14 @@ public class ServerPing { this.type = Preconditions.checkNotNull(type, "type"); this.modList = ImmutableList.copyOf(modList); } + + public String getType() { + return type; + } + + public List getModList() { + return modList; + } } public static class Mod { From 1bdba0075f8753ed5b41401eac56c8b6e170be0c Mon Sep 17 00:00:00 2001 From: PurpleIsEverything Date: Wed, 19 Sep 2018 17:13:29 -0600 Subject: [PATCH 2/2] Rename getModList to getMods --- .../java/com/velocitypowered/api/proxy/server/ServerPing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java b/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java index 0c9feffb3..bf9a3f2ee 100644 --- a/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java +++ b/api/src/main/java/com/velocitypowered/api/proxy/server/ServerPing.java @@ -317,7 +317,7 @@ public class ServerPing { return type; } - public List getModList() { + public List getMods() { return modList; } }