X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FCore.java;h=ad1982490353d69da264e53eab52576b927c358d;hb=7ec5cf4d41166dab589d026256ee995068577ef2;hp=b16165e67360fa4b78c671452ec168a13b0bbfad;hpb=3993bb581e277bc8b1a2b45122d0c7bbced9405c;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index b16165e..ad19824 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -231,6 +231,18 @@ public class Core implements IdentityListener { } /** + * Checks whether the core knows a Sone with the given ID. + * + * @param id + * The ID of the Sone + * @return {@code true} if there is a Sone with the given ID, {@code false} + * otherwise + */ + public boolean hasSone(String id) { + return isLocalSone(id) || isRemoteSone(id); + } + + /** * Returns whether the given Sone is a local Sone. * * @param sone