mirror of
https://github.com/plexusorg/Plex.git
synced 2025-06-27 06:06:40 +00:00
A bit more work on the API
This commit is contained in:
11
api/src/main/java/dev/plex/api/IPlayerCache.java
Normal file
11
api/src/main/java/dev/plex/api/IPlayerCache.java
Normal file
@ -0,0 +1,11 @@
|
||||
package dev.plex.api;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface IPlayerCache<T>
|
||||
{
|
||||
Map<UUID, T> getPlexPlayerMap();
|
||||
|
||||
T getPlexPlayer(UUID uuid);
|
||||
}
|
6
api/src/main/java/dev/plex/api/PlexApi.java
Normal file
6
api/src/main/java/dev/plex/api/PlexApi.java
Normal file
@ -0,0 +1,6 @@
|
||||
package dev.plex.api;
|
||||
|
||||
public interface PlexApi
|
||||
{
|
||||
IPlayerCache<?> getPlayerCache();
|
||||
}
|
6
api/src/main/java/dev/plex/api/PlexApiProvider.java
Normal file
6
api/src/main/java/dev/plex/api/PlexApiProvider.java
Normal file
@ -0,0 +1,6 @@
|
||||
package dev.plex.api;
|
||||
|
||||
public interface PlexApiProvider
|
||||
{
|
||||
PlexApi getApi();
|
||||
}
|
@ -4,7 +4,7 @@ import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public interface IRank
|
||||
public interface IRank<T>
|
||||
{
|
||||
int getLevel();
|
||||
|
||||
@ -20,7 +20,7 @@ public interface IRank
|
||||
|
||||
NamedTextColor getColor();
|
||||
|
||||
boolean isAtLeast(IRank rank);
|
||||
boolean isAtLeast(T rank);
|
||||
|
||||
JSONObject toJSON();
|
||||
}
|
||||
|
Reference in New Issue
Block a user