Package com.Acrobot.Breeze.Utils.MojangAPI

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


     *
     * @param uuid UUID to check
     * @return The name associated with an UUID
     */
    public static String getName(UUID uuid) {
        NameFetcher fetcher = new NameFetcher(uuid);

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

            return uuidMap.get(uuid);
        } catch (Exception e) {
            return null;
        }
View Full Code Here


     *
     * @param uuids UUIDs to check
     * @return Fetched names
     */
    public static Map<UUID, String> getName(UUID... uuids) {
        NameFetcher fetcher = new NameFetcher(uuids);

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

TOP

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

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.