Package com.Acrobot.Breeze.Utils.MojangAPI

Examples of com.Acrobot.Breeze.Utils.MojangAPI.UUIDFetcher


     *
     * @param username Username whose UUID to get
     * @return UUID of a specified username
     */
    public static UUID getUUID(String username) {
        UUIDFetcher fetcher = new UUIDFetcher(username);

        try {
            Map<String, UUID> uuidMap = fetcher.call();

            if (uuidMap.size() < 1) {
                return INVALID_UUID;
            }

View Full Code Here


     *
     * @param usernames Usernames whose UUID to get
     * @return UUID of the specified usernames
     */
    public static Map<String, UUID> getUUID(String... usernames) {
        UUIDFetcher fetcher = new UUIDFetcher(usernames);

        try {
            return fetcher.call();
        } catch (Exception exception) {
            return ImmutableMap.of();
        }
    }
View Full Code Here

TOP

Related Classes of com.Acrobot.Breeze.Utils.MojangAPI.UUIDFetcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.