Search in sources :

Example 1 with IridiumSkyblockAPI

use of com.iridium.iridiumskyblock.api.IridiumSkyblockAPI in project CombatLogX by SirBlobman.

the class ListenerIridiumSkyblock method getIsland.

private Island getIsland(Player player) {
    if (player == null)
        return null;
    IridiumSkyblockAPI api = IridiumSkyblockAPI.getInstance();
    User user = api.getUser(player);
    Optional<Island> optionalIsland = user.getIsland();
    return optionalIsland.orElse(null);
}
Also used : User(com.iridium.iridiumskyblock.database.User) IridiumSkyblockAPI(com.iridium.iridiumskyblock.api.IridiumSkyblockAPI) Island(com.iridium.iridiumskyblock.database.Island)

Aggregations

IridiumSkyblockAPI (com.iridium.iridiumskyblock.api.IridiumSkyblockAPI)1 Island (com.iridium.iridiumskyblock.database.Island)1 User (com.iridium.iridiumskyblock.database.User)1